home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Information / Digests / CSMP Digest / volume 3 / csmp-digest-v3-064 < prev    next >
Mailbox/MIME Entity  |  1995-12-31  |  52.1 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file C source, ISO-8859 text, with CR line terminators default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 65 63 65 69 76 65 64 | 2d 44 61 74 65 3a 20 53 |Received|-Date: S|
|00000010| 61 74 2c 20 38 20 4f 63 | 74 20 31 39 39 34 20 31 |at, 8 Oc|t 1994 1|
|00000020| 34 3a 34 39 3a 34 38 20 | 2b 30 31 30 30 0d 46 72 |4:49:48 |+0100.Fr|
|00000030| 6f 6d 3a 20 70 6f 74 74 | 69 65 72 40 63 6c 69 70 |om: pott|ier@clip|
|00000040| 70 65 72 2e 65 6e 73 2e | 66 72 20 28 46 72 61 6e |per.ens.|fr (Fran|
|00000050| 63 6f 69 73 20 50 6f 74 | 74 69 65 72 29 0d 53 75 |cois Pot|tier).Su|
|00000060| 62 6a 65 63 74 3a 20 63 | 73 6d 70 2d 64 69 67 65 |bject: c|smp-dige|
|00000070| 73 74 2d 76 33 2d 30 36 | 34 0d 54 6f 3a 20 63 73 |st-v3-06|4.To: cs|
|00000080| 6d 70 2d 64 69 67 65 73 | 74 40 65 6e 73 2e 66 72 |mp-diges|t@ens.fr|
|00000090| 0d 44 61 74 65 3a 20 53 | 61 74 2c 20 38 20 4f 63 |.Date: S|at, 8 Oc|
|000000a0| 74 20 31 39 39 34 20 31 | 34 3a 34 39 3a 34 31 20 |t 1994 1|4:49:41 |
|000000b0| 2b 30 31 30 30 20 28 4d | 45 54 29 0d 58 2d 4d 61 |+0100 (M|ET).X-Ma|
|000000c0| 69 6c 65 72 3a 20 45 4c | 4d 20 5b 76 65 72 73 69 |iler: EL|M [versi|
|000000d0| 6f 6e 20 32 2e 34 20 50 | 4c 32 33 5d 0d 4d 69 6d |on 2.4 P|L23].Mim|
|000000e0| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0d 43 |e-Versio|n: 1.0.C|
|000000f0| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 74 65 78 |ontent-T|ype: tex|
|00000100| 74 2f 70 6c 61 69 6e 3b | 20 63 68 61 72 73 65 74 |t/plain;| charset|
|00000110| 3d 49 53 4f 2d 38 38 35 | 39 2d 31 0d 43 6f 6e 74 |=ISO-885|9-1.Cont|
|00000120| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|00000130| 6f 64 69 6e 67 3a 20 38 | 62 69 74 0d 45 72 72 6f |oding: 8|bit.Erro|
|00000140| 72 73 2d 54 6f 3a 20 6c | 69 73 74 6d 61 6e 40 65 |rs-To: l|istman@e|
|00000150| 6e 73 2e 66 72 0d 52 65 | 70 6c 79 2d 54 6f 3a 20 |ns.fr.Re|ply-To: |
|00000160| 70 6f 74 74 69 65 72 40 | 63 6c 69 70 70 65 72 2e |pottier@|clipper.|
|00000170| 65 6e 73 2e 66 72 0d 58 | 2d 53 65 71 75 65 6e 63 |ens.fr.X|-Sequenc|
|00000180| 65 3a 20 36 39 0d 0d 43 | 2e 53 2e 4d 2e 50 2e 20 |e: 69..C|.S.M.P. |
|00000190| 44 69 67 65 73 74 20 20 | 20 20 20 20 20 20 20 20 |Digest | |
|000001a0| 20 20 20 53 61 74 2c 20 | 30 38 20 4f 63 74 20 39 | Sat, |08 Oct 9|
|000001b0| 34 20 20 20 20 20 20 20 | 56 6f 6c 75 6d 65 20 33 |4 |Volume 3|
|000001c0| 20 3a 20 49 73 73 75 65 | 20 36 34 0d 20 0d 54 6f | : Issue| 64. .To|
|000001d0| 64 61 79 27 73 20 54 6f | 70 69 63 73 3a 0d 20 0d |day's To|pics:. .|
|000001e0| 20 20 20 20 20 20 20 20 | 48 65 6c 70 21 21 20 61 | |Help!! a|
|000001f0| 72 67 63 2c 20 61 72 67 | 76 20 6f 6e 20 4d 61 63 |rgc, arg|v on Mac|
|00000200| 69 6e 74 6f 73 68 0d 20 | 20 20 20 20 20 20 20 48 |intosh. | H|
|00000210| 6f 77 20 74 6f 20 43 68 | 65 63 6b 20 69 66 20 64 |ow to Ch|eck if d|
|00000220| 72 69 76 65 72 73 20 61 | 72 65 20 6f 70 65 6e 0d |rivers a|re open.|
|00000230| 20 20 20 20 20 20 20 20 | 49 73 20 69 74 20 70 6f | |Is it po|
|00000240| 73 73 69 62 6c 65 20 74 | 6f 20 6e 6f 74 69 66 79 |ssible t|o notify|
|00000250| 20 61 6e 6f 74 68 65 72 | 20 6d 61 63 3f 0d 20 20 | another| mac?. |
|00000260| 20 20 20 20 20 20 4d 65 | 6d 6f 72 79 20 6d 6f 76 | Me|mory mov|
|00000270| 69 6e 67 20 61 6e 64 20 | 49 6e 69 74 73 0d 20 20 |ing and |Inits. |
|00000280| 20 20 20 20 20 20 53 65 | 6c 66 2d 64 69 73 70 6f | Se|lf-dispo|
|00000290| 73 69 6e 67 20 6e 6f 74 | 69 66 69 63 61 74 69 6f |sing not|ificatio|
|000002a0| 6e 20 63 72 61 73 68 65 | 73 0d 20 20 20 20 20 20 |n crashe|s. |
|000002b0| 20 20 5b 43 57 57 57 57 | 5d 20 50 6f 77 65 72 50 | [CWWWW|] PowerP|
|000002c0| 6c 61 6e 74 20 54 6f 75 | 72 20 64 6f 63 75 6d 65 |lant Tou|r docume|
|000002d0| 6e 74 20 61 76 61 69 6c | 61 62 6c 65 0d 0d 0d 0d |nt avail|able....|
|000002e0| 54 68 65 20 43 6f 6d 70 | 2e 53 79 73 2e 4d 61 63 |The Comp|.Sys.Mac|
|000002f0| 2e 50 72 6f 67 72 61 6d | 6d 65 72 20 44 69 67 65 |.Program|mer Dige|
|00000300| 73 74 20 69 73 20 6d 6f | 64 65 72 61 74 65 64 20 |st is mo|derated |
|00000310| 62 79 20 46 72 61 6e 63 | 6f 69 73 20 50 6f 74 74 |by Franc|ois Pott|
|00000320| 69 65 72 0d 28 70 6f 74 | 74 69 65 72 40 63 6c 69 |ier.(pot|tier@cli|
|00000330| 70 70 65 72 2e 65 6e 73 | 2e 66 72 29 2e 0d 20 0d |pper.ens|.fr).. .|
|00000340| 54 68 65 20 64 69 67 65 | 73 74 20 69 73 20 61 20 |The dige|st is a |
|00000350| 63 6f 6c 6c 65 63 74 69 | 6f 6e 20 6f 66 20 61 72 |collecti|on of ar|
|00000360| 74 69 63 6c 65 20 74 68 | 72 65 61 64 73 20 66 72 |ticle th|reads fr|
|00000370| 6f 6d 20 74 68 65 20 69 | 6e 74 65 72 6e 65 74 20 |om the i|nternet |
|00000380| 6e 65 77 73 67 72 6f 75 | 70 0d 63 6f 6d 70 2e 73 |newsgrou|p.comp.s|
|00000390| 79 73 2e 6d 61 63 2e 70 | 72 6f 67 72 61 6d 6d 65 |ys.mac.p|rogramme|
|000003a0| 72 2e 20 20 49 74 20 69 | 73 20 64 65 73 69 67 6e |r. It i|s design|
|000003b0| 65 64 20 66 6f 72 20 70 | 65 6f 70 6c 65 20 77 68 |ed for p|eople wh|
|000003c0| 6f 20 72 65 61 64 20 63 | 2e 73 2e 6d 2e 70 2e 20 |o read c|.s.m.p. |
|000003d0| 73 65 6d 69 2d 0d 72 65 | 67 75 6c 61 72 6c 79 20 |semi-.re|gularly |
|000003e0| 61 6e 64 20 77 61 6e 74 | 20 61 6e 20 61 72 63 68 |and want| an arch|
|000003f0| 69 76 65 20 6f 66 20 74 | 68 65 20 64 69 73 63 75 |ive of t|he discu|
|00000400| 73 73 69 6f 6e 73 2e 20 | 20 49 66 20 79 6f 75 20 |ssions. | If you |
|00000410| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 77 68 61 74 20 |don't kn|ow what |
|00000420| 61 0d 6e 65 77 73 67 72 | 6f 75 70 20 69 73 2c 20 |a.newsgr|oup is, |
|00000430| 79 6f 75 20 70 72 6f 62 | 61 62 6c 79 20 64 6f 6e |you prob|ably don|
|00000440| 27 74 20 68 61 76 65 20 | 61 63 63 65 73 73 20 74 |'t have |access t|
|00000450| 6f 20 69 74 2e 20 20 41 | 73 6b 20 79 6f 75 72 20 |o it. A|sk your |
|00000460| 73 79 73 74 65 6d 73 0d | 61 64 6d 69 6e 69 73 74 |systems.|administ|
|00000470| 72 61 74 6f 72 28 73 29 | 20 66 6f 72 20 64 65 74 |rator(s)| for det|
|00000480| 61 69 6c 73 2e 20 20 49 | 66 20 79 6f 75 20 64 6f |ails. I|f you do|
|00000490| 6e 27 74 20 68 61 76 65 | 20 61 63 63 65 73 73 20 |n't have| access |
|000004a0| 74 6f 20 6e 65 77 73 2c | 20 79 6f 75 20 6d 61 79 |to news,| you may|
|000004b0| 0d 73 74 69 6c 6c 20 62 | 65 20 61 62 6c 65 20 74 |.still b|e able t|
|000004c0| 6f 20 70 6f 73 74 20 6d | 65 73 73 61 67 65 73 20 |o post m|essages |
|000004d0| 74 6f 20 74 68 65 20 67 | 72 6f 75 70 20 62 79 20 |to the g|roup by |
|000004e0| 75 73 69 6e 67 20 61 20 | 6d 61 69 6c 20 73 65 72 |using a |mail ser|
|000004f0| 76 65 72 20 6c 69 6b 65 | 0d 61 6e 6f 6e 2e 70 65 |ver like|.anon.pe|
|00000500| 6e 65 74 2e 66 69 20 28 | 6d 61 69 6c 20 68 65 6c |net.fi (|mail hel|
|00000510| 70 40 61 6e 6f 6e 2e 70 | 65 6e 65 74 2e 66 69 20 |p@anon.p|enet.fi |
|00000520| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |for more| informa|
|00000530| 74 69 6f 6e 29 2e 0d 20 | 0d 45 61 63 68 20 69 73 |tion).. |.Each is|
|00000540| 73 75 65 20 6f 66 20 74 | 68 65 20 64 69 67 65 73 |sue of t|he diges|
|00000550| 74 20 63 6f 6e 74 61 69 | 6e 73 20 6f 6e 65 20 6f |t contai|ns one o|
|00000560| 72 20 6d 6f 72 65 20 73 | 65 74 73 20 6f 66 20 61 |r more s|ets of a|
|00000570| 72 74 69 63 6c 65 73 20 | 28 63 61 6c 6c 65 64 0d |rticles |(called.|
|00000580| 74 68 72 65 61 64 73 29 | 2c 20 77 69 74 68 20 65 |threads)|, with e|
|00000590| 61 63 68 20 73 65 74 20 | 63 6f 72 72 65 73 70 6f |ach set |correspo|
|000005a0| 6e 64 69 6e 67 20 74 6f | 20 61 20 27 64 69 73 63 |nding to| a 'disc|
|000005b0| 75 73 73 69 6f 6e 27 20 | 6f 66 20 61 20 70 61 72 |ussion' |of a par|
|000005c0| 74 69 63 75 6c 61 72 0d | 73 75 62 6a 65 63 74 2e |ticular.|subject.|
|000005d0| 20 20 54 68 65 20 61 72 | 74 69 63 6c 65 73 20 61 | The ar|ticles a|
|000005e0| 72 65 20 6e 6f 74 20 65 | 64 69 74 65 64 3b 20 61 |re not e|dited; a|
|000005f0| 6c 6c 20 61 72 74 69 63 | 6c 65 73 20 69 6e 63 6c |ll artic|les incl|
|00000600| 75 64 65 64 20 69 6e 20 | 74 68 69 73 20 64 69 67 |uded in |this dig|
|00000610| 65 73 74 0d 61 72 65 20 | 69 6e 20 74 68 65 69 72 |est.are |in their|
|00000620| 20 6f 72 69 67 69 6e 61 | 6c 20 70 6f 73 74 65 64 | origina|l posted|
|00000630| 20 66 6f 72 6d 20 28 61 | 73 20 72 65 63 65 69 76 | form (a|s receiv|
|00000640| 65 64 20 62 79 20 6f 75 | 72 20 6e 65 77 73 20 73 |ed by ou|r news s|
|00000650| 65 72 76 65 72 20 61 74 | 0d 6e 65 66 2e 65 6e 73 |erver at|.nef.ens|
|00000660| 2e 66 72 29 2e 20 20 41 | 72 74 69 63 6c 65 20 74 |.fr). A|rticle t|
|00000670| 68 72 65 61 64 73 20 61 | 72 65 20 6e 6f 74 20 61 |hreads a|re not a|
|00000680| 64 64 65 64 20 74 6f 20 | 74 68 65 20 64 69 67 65 |dded to |the dige|
|00000690| 73 74 20 75 6e 74 69 6c | 20 74 68 65 20 6c 61 73 |st until| the las|
|000006a0| 74 0d 61 72 74 69 63 6c | 65 20 61 64 64 65 64 20 |t.articl|e added |
|000006b0| 74 6f 20 74 68 65 20 74 | 68 72 65 61 64 20 69 73 |to the t|hread is|
|000006c0| 20 61 74 20 6c 65 61 73 | 74 20 74 77 6f 20 77 65 | at leas|t two we|
|000006d0| 65 6b 73 20 6f 6c 64 20 | 28 74 68 69 73 20 69 73 |eks old |(this is|
|000006e0| 20 74 6f 20 65 6e 73 75 | 72 65 20 74 68 61 74 0d | to ensu|re that.|
|000006f0| 74 68 65 20 74 68 72 65 | 61 64 20 69 73 20 64 65 |the thre|ad is de|
|00000700| 61 64 20 62 65 66 6f 72 | 65 20 61 64 64 69 6e 67 |ad befor|e adding|
|00000710| 20 69 74 20 74 6f 20 74 | 68 65 20 64 69 67 65 73 | it to t|he diges|
|00000720| 74 29 2e 20 20 41 72 74 | 69 63 6c 65 20 74 68 72 |t). Art|icle thr|
|00000730| 65 61 64 73 20 74 68 61 | 74 0d 63 6f 6e 73 69 73 |eads tha|t.consis|
|00000740| 74 20 6f 66 20 6f 6e 6c | 79 20 6f 6e 65 20 6d 65 |t of onl|y one me|
|00000750| 73 73 61 67 65 20 61 72 | 65 20 67 65 6e 65 72 61 |ssage ar|e genera|
|00000760| 6c 6c 79 20 6e 6f 74 20 | 69 6e 63 6c 75 64 65 64 |lly not |included|
|00000770| 20 69 6e 20 74 68 65 20 | 64 69 67 65 73 74 2e 0d | in the |digest..|
|00000780| 0d 54 68 65 20 64 69 67 | 65 73 74 20 69 73 20 6f |.The dig|est is o|
|00000790| 66 66 69 63 69 61 6c 6c | 79 20 64 69 73 74 72 69 |fficiall|y distri|
|000007a0| 62 75 74 65 64 20 62 79 | 20 74 77 6f 20 6d 65 61 |buted by| two mea|
|000007b0| 6e 73 2c 20 62 79 20 65 | 6d 61 69 6c 20 61 6e 64 |ns, by e|mail and|
|000007c0| 20 66 74 70 2e 0d 0d 49 | 66 20 79 6f 75 20 77 61 | ftp...I|f you wa|
|000007d0| 6e 74 20 74 6f 20 72 65 | 63 65 69 76 65 20 74 68 |nt to re|ceive th|
|000007e0| 65 20 64 69 67 65 73 74 | 20 62 79 20 6d 61 69 6c |e digest| by mail|
|000007f0| 2c 20 73 65 6e 64 20 65 | 6d 61 69 6c 20 74 6f 20 |, send e|mail to |
|00000800| 6c 69 73 74 73 65 72 76 | 40 65 6e 73 2e 66 72 0d |listserv|@ens.fr.|
|00000810| 77 69 74 68 20 6e 6f 20 | 73 75 62 6a 65 63 74 20 |with no |subject |
|00000820| 61 6e 64 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 66 |and one |of the f|
|00000830| 6f 6c 6c 6f 77 69 6e 67 | 20 63 6f 6d 6d 61 6e 64 |ollowing| command|
|00000840| 73 20 61 73 20 62 6f 64 | 79 3a 0d 20 20 20 20 68 |s as bod|y:. h|
|00000850| 65 6c 70 09 09 20 20 20 | 20 20 20 20 20 20 20 20 |elp.. | |
|00000860| 20 20 20 20 20 53 65 6e | 64 73 20 79 6f 75 20 61 | Sen|ds you a|
|00000870| 20 73 75 6d 6d 61 72 79 | 20 6f 66 20 63 6f 6d 6d | summary| of comm|
|00000880| 61 6e 64 73 0d 20 20 20 | 20 73 75 62 73 63 72 69 |ands. | subscri|
|00000890| 62 65 20 63 73 6d 70 2d | 64 69 67 65 73 74 20 59 |be csmp-|digest Y|
|000008a0| 6f 75 72 20 4e 61 6d 65 | 09 41 64 64 73 20 79 6f |our Name|.Adds yo|
|000008b0| 75 20 74 6f 20 74 68 65 | 20 6d 61 69 6c 69 6e 67 |u to the| mailing|
|000008c0| 20 6c 69 73 74 0d 20 20 | 20 20 73 69 67 6e 6f 66 | list. | signof|
|000008d0| 66 20 63 73 6d 70 2d 64 | 69 67 65 73 74 09 09 09 |f csmp-d|igest...|
|000008e0| 52 65 6d 6f 76 65 73 20 | 79 6f 75 20 66 72 6f 6d |Removes |you from|
|000008f0| 20 74 68 65 20 6c 69 73 | 74 0d 4f 6e 63 65 20 79 | the lis|t.Once y|
|00000900| 6f 75 20 68 61 76 65 20 | 73 75 62 73 63 72 69 62 |ou have |subscrib|
|00000910| 65 64 2c 20 79 6f 75 20 | 77 69 6c 6c 20 61 75 74 |ed, you |will aut|
|00000920| 6f 6d 61 74 69 63 61 6c | 6c 79 20 72 65 63 65 69 |omatical|ly recei|
|00000930| 76 65 20 65 61 63 68 20 | 6e 65 77 0d 69 73 73 75 |ve each |new.issu|
|00000940| 65 20 61 73 20 69 74 20 | 69 73 20 63 72 65 61 74 |e as it |is creat|
|00000950| 65 64 2e 0d 0d 54 68 65 | 20 6f 66 66 69 63 69 61 |ed...The| officia|
|00000960| 6c 20 66 74 70 20 69 6e | 66 6f 20 69 73 20 2f 2f |l ftp in|fo is //|
|00000970| 66 74 70 2e 64 61 72 74 | 6d 6f 75 74 68 2e 65 64 |ftp.dart|mouth.ed|
|00000980| 75 2f 70 75 62 2f 63 73 | 6d 70 2d 64 69 67 65 73 |u/pub/cs|mp-diges|
|00000990| 74 2e 0d 51 75 65 73 74 | 69 6f 6e 73 20 72 65 6c |t..Quest|ions rel|
|000009a0| 61 74 65 64 20 74 6f 20 | 74 68 65 20 66 74 70 20 |ated to |the ftp |
|000009b0| 73 69 74 65 20 73 68 6f | 75 6c 64 20 62 65 20 64 |site sho|uld be d|
|000009c0| 69 72 65 63 74 65 64 20 | 74 6f 0d 73 63 6f 74 74 |irected |to.scott|
|000009d0| 2e 73 69 6c 76 65 72 40 | 64 61 72 74 6d 6f 75 74 |.silver@|dartmout|
|000009e0| 68 2e 65 64 75 2e 20 43 | 75 72 72 65 6e 74 6c 79 |h.edu. C|urrently|
|000009f0| 20 6e 6f 20 70 72 65 76 | 69 6f 75 73 20 76 6f 6c | no prev|ious vol|
|00000a00| 75 6d 65 73 20 6f 66 20 | 74 68 65 20 43 53 4d 50 |umes of |the CSMP|
|00000a10| 0d 64 69 67 65 73 74 20 | 61 72 65 20 61 76 61 69 |.digest |are avai|
|00000a20| 6c 61 62 6c 65 20 74 68 | 65 72 65 2e 0d 0d 41 6c |lable th|ere...Al|
|00000a30| 73 6f 2c 20 74 68 65 20 | 64 69 67 65 73 74 73 20 |so, the |digests |
|00000a40| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |are avai|lable to|
|00000a50| 20 57 41 49 53 20 75 73 | 65 72 73 2e 20 20 54 6f | WAIS us|ers. To|
|00000a60| 20 73 65 61 72 63 68 20 | 62 61 63 6b 20 69 73 73 | search |back iss|
|00000a70| 75 65 73 0d 77 69 74 68 | 20 57 41 49 53 2c 20 75 |ues.with| WAIS, u|
|00000a80| 73 65 20 63 6f 6d 70 2e | 73 79 73 2e 6d 61 63 2e |se comp.|sys.mac.|
|00000a90| 70 72 6f 67 72 61 6d 6d | 65 72 2e 73 72 63 2e 20 |programm|er.src. |
|00000aa0| 57 69 74 68 20 4d 6f 73 | 61 69 63 2c 20 75 73 65 |With Mos|aic, use|
|00000ab0| 0d 68 74 74 70 3a 2f 2f | 77 77 77 2e 77 61 69 73 |.http://|www.wais|
|00000ac0| 2e 63 6f 6d 2f 77 61 69 | 73 2d 64 62 73 2f 63 6f |.com/wai|s-dbs/co|
|00000ad0| 6d 70 2e 73 79 73 2e 6d | 61 63 2e 70 72 6f 67 72 |mp.sys.m|ac.progr|
|00000ae0| 61 6d 6d 65 72 2e 68 74 | 6d 6c 2e 0d 0d 0d 2d 2d |ammer.ht|ml....--|
|00000af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b20| 2d 2d 2d 2d 2d 0d 0d 3e | 46 72 6f 6d 20 76 69 63 |-----..>|From vic|
|00000b30| 74 6f 72 20 63 68 6f 6e | 67 20 3c 76 69 63 74 6f |tor chon|g <victo|
|00000b40| 72 63 40 73 6c 65 65 70 | 79 2e 63 63 2e 75 74 65 |rc@sleep|y.cc.ute|
|00000b50| 78 61 73 2e 65 64 75 3e | 0d 53 75 62 6a 65 63 74 |xas.edu>|.Subject|
|00000b60| 3a 20 48 65 6c 70 21 21 | 20 61 72 67 63 2c 20 61 |: Help!!| argc, a|
|00000b70| 72 67 76 20 6f 6e 20 4d | 61 63 69 6e 74 6f 73 68 |rgv on M|acintosh|
|00000b80| 0d 44 61 74 65 3a 20 32 | 32 20 53 65 70 20 31 39 |.Date: 2|2 Sep 19|
|00000b90| 39 34 20 32 31 3a 31 39 | 3a 31 35 20 47 4d 54 0d |94 21:19|:15 GMT.|
|00000ba0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 55 54 |Organiza|tion: UT|
|00000bb0| 20 41 75 73 74 69 6e 0d | 0d 48 69 2c 0d 09 49 20 | Austin.|.Hi,..I |
|00000bc0| 77 61 73 20 77 6f 6e 64 | 65 72 69 6e 67 20 69 66 |was wond|ering if|
|00000bd0| 20 73 6f 6d 65 6f 6e 65 | 20 63 6f 75 6c 64 20 65 | someone| could e|
|00000be0| 6e 6c 69 67 68 74 65 6e | 20 6d 65 20 63 6f 6e 63 |nlighten| me conc|
|00000bf0| 65 72 6e 69 6e 67 0d 74 | 68 65 20 75 73 61 67 65 |erning.t|he usage|
|00000c00| 20 6f 66 20 61 72 67 76 | 20 61 6e 64 20 61 72 67 | of argv| and arg|
|00000c10| 63 20 77 68 65 6e 20 70 | 72 6f 67 72 61 6d 6d 69 |c when p|rogrammi|
|00000c20| 6e 67 20 6f 6e 20 74 68 | 65 20 4d 61 63 69 6e 74 |ng on th|e Macint|
|00000c30| 6f 73 68 2e 0d 49 27 6d | 20 75 73 69 6e 67 20 53 |osh..I'm| using S|
|00000c40| 79 6d 61 6e 74 65 63 20 | 43 2b 2b 2e 0d 09 44 6f |ymantec |C++...Do|
|00000c50| 65 73 20 74 68 65 20 4d | 61 63 20 61 6c 6c 6f 77 |es the M|ac allow|
|00000c60| 73 20 74 68 69 73 20 6b | 69 6e 64 20 6f 66 20 63 |s this k|ind of c|
|00000c70| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 20 77 69 74 |ommunica|tion wit|
|00000c80| 68 20 74 68 65 0d 4f 53 | 20 6f 72 20 69 73 20 74 |h the.OS| or is t|
|00000c90| 68 65 72 65 20 61 6e 6f | 74 68 65 72 20 6d 65 74 |here ano|ther met|
|00000ca0| 68 6f 64 2e 0d 09 41 6e | 79 20 6b 69 6e 64 20 6f |hod...An|y kind o|
|00000cb0| 66 20 68 65 6c 70 20 77 | 69 6c 6c 20 62 65 20 6d |f help w|ill be m|
|00000cc0| 75 63 68 20 77 65 6c 63 | 6f 6d 65 2e 0d 09 54 68 |uch welc|ome...Th|
|00000cd0| 61 6e 6b 20 79 6f 75 20 | 76 65 72 79 20 6d 75 63 |ank you |very muc|
|00000ce0| 68 2e 0d 09 0d 09 0d 09 | 0d 09 0d 76 69 63 74 6f |h.......|...victo|
|00000cf0| 72 0d 0d 76 69 63 74 6f | 72 63 40 73 6c 65 65 70 |r..victo|rc@sleep|
|00000d00| 79 2e 63 63 2e 75 74 65 | 78 61 73 2e 65 64 75 0d |y.cc.ute|xas.edu.|
|00000d10| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|00000d20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|00000d30| 72 6f 6d 20 45 72 69 63 | 2e 4d 2e 4b 69 64 64 40 |rom Eric|.M.Kidd@|
|00000d40| 64 61 72 74 6d 6f 75 74 | 68 2e 65 64 75 20 28 45 |dartmout|h.edu (E|
|00000d50| 72 69 63 20 4d 2e 20 4b | 69 64 64 29 0d 44 61 74 |ric M. K|idd).Dat|
|00000d60| 65 3a 20 32 33 20 53 65 | 70 20 31 39 39 34 20 30 |e: 23 Se|p 1994 0|
|00000d70| 30 3a 31 31 3a 33 36 20 | 47 4d 54 0d 4f 72 67 61 |0:11:36 |GMT.Orga|
|00000d80| 6e 69 7a 61 74 69 6f 6e | 3a 20 44 61 72 74 6d 6f |nization|: Dartmo|
|00000d90| 75 74 68 20 43 6f 6c 6c | 65 67 65 2c 20 48 61 6e |uth Coll|ege, Han|
|00000da0| 6f 76 65 72 2c 20 4e 48 | 0d 0d 61 72 67 63 20 61 |over, NH|..argc a|
|00000db0| 6e 64 20 61 72 67 76 20 | 64 6f 20 6e 6f 74 20 77 |nd argv |do not w|
|00000dc0| 6f 72 6b 20 61 74 20 61 | 6c 6c 20 6f 6e 20 61 6e |ork at a|ll on an|
|00000dd0| 79 20 6e 6f 72 6d 61 6c | 20 6d 61 63 20 73 65 74 |y normal| mac set|
|00000de0| 75 70 2e 20 53 6f 72 72 | 79 2e 0d 0d 54 68 65 20 |up. Sorr|y...The |
|00000df0| 66 6f 6c 6c 6f 77 69 6e | 67 20 70 72 6f 67 72 61 |followin|g progra|
|00000e00| 6d 20 66 72 61 67 6d 65 | 6e 74 20 67 69 76 65 73 |m fragme|nt gives|
|00000e10| 20 61 6e 20 69 64 65 61 | 20 6f 66 20 68 6f 77 20 | an idea| of how |
|00000e20| 74 6f 20 67 65 74 20 74 | 68 65 0d 6f 6c 64 2d 66 |to get t|he.old-f|
|00000e30| 61 73 68 69 6f 6e 65 64 | 20 61 70 70 20 70 61 72 |ashioned| app par|
|00000e40| 61 6d 73 20 28 66 69 6c | 65 73 20 74 6f 20 6f 70 |ams (fil|es to op|
|00000e50| 65 6e 20 6f 72 20 70 72 | 69 6e 74 29 2e 20 49 66 |en or pr|int). If|
|00000e60| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 64 6f 0d | you wan|t to do.|
|00000e70| 61 6e 79 74 68 69 6e 67 | 20 6d 6f 72 65 20 63 6f |anything| more co|
|00000e80| 6d 70 6c 69 63 61 74 65 | 64 2c 20 79 6f 75 27 6c |mplicate|d, you'l|
|00000e90| 6c 20 6e 65 65 64 20 74 | 6f 20 75 73 65 20 41 70 |l need t|o use Ap|
|00000ea0| 70 6c 65 20 45 76 65 6e | 74 73 2e 0d 0d 2f 2a 20 |ple Even|ts.../* |
|00000eb0| 6f 70 65 6e 69 6e 67 46 | 69 6c 65 73 28 20 29 0d |openingF|iles( ).|
|00000ec0| 2a 2a 0d 2a 2a 20 44 65 | 74 65 72 6d 69 6e 65 20 |**.** De|termine |
|00000ed0| 69 66 20 77 65 20 68 61 | 76 65 20 70 61 72 61 6d |if we ha|ve param|
|00000ee0| 65 74 65 72 73 2e 20 54 | 68 65 20 6f 6c 64 2d 73 |eters. T|he old-s|
|00000ef0| 74 79 6c 65 20 61 70 70 | 20 70 61 72 61 6d 65 74 |tyle app| paramet|
|00000f00| 65 72 73 20 61 72 65 0d | 75 73 65 64 20 66 6f 72 |ers are.|used for|
|00000f10| 0d 2a 2a 20 74 68 65 20 | 73 61 6b 65 20 6f 66 20 |.** the |sake of |
|00000f20| 53 50 45 45 44 2e 20 41 | 70 70 6c 65 20 45 76 65 |SPEED. A|pple Eve|
|00000f30| 6e 74 73 20 61 72 65 20 | 74 6f 6f 20 73 6c 6f 77 |nts are |too slow|
|00000f40| 2c 20 61 6e 64 20 49 20 | 6f 6e 6c 79 20 68 61 76 |, and I |only hav|
|00000f50| 65 0d 70 61 72 74 69 61 | 6c 20 64 6f 63 73 2e 0d |e.partia|l docs..|
|00000f60| 2a 2a 20 48 65 6c 70 20 | 69 6e 20 61 63 71 75 69 |** Help |in acqui|
|00000f70| 72 69 6e 67 20 63 6f 70 | 69 65 73 20 6f 66 20 49 |ring cop|ies of I|
|00000f80| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00000f90| 61 6c 77 61 79 73 20 77 | 65 6c 63 6f 6d 65 2e 2e |always w|elcome..|
|00000fa0| 2e 0d 2a 2f 0d 0d 42 6f | 6f 6c 65 61 6e 20 6f 70 |..*/..Bo|olean op|
|00000fb0| 65 6e 69 6e 67 46 69 6c | 65 73 28 20 29 0d 7b 0d |eningFil|es( ).{.|
|00000fc0| 09 73 68 6f 72 74 20 6d | 65 73 73 61 67 65 3b 0d |.short m|essage;.|
|00000fd0| 09 73 68 6f 72 74 20 63 | 6f 75 6e 74 3b 0d 09 0d |.short c|ount;...|
|00000fe0| 09 43 6f 75 6e 74 41 70 | 70 46 69 6c 65 73 28 20 |.CountAp|pFiles( |
|00000ff0| 26 6d 65 73 73 61 67 65 | 2c 20 26 63 6f 75 6e 74 |&message|, &count|
|00001000| 20 29 3b 0d 09 0d 09 72 | 65 74 75 72 6e 20 28 20 | );....r|eturn ( |
|00001010| 6d 65 73 73 61 67 65 20 | 3d 3d 20 30 20 26 26 20 |message |== 0 && |
|00001020| 63 6f 75 6e 74 20 3e 20 | 30 20 29 3b 0d 7d 0d 0d |count > |0 );.}..|
|00001030| 2f 2a 20 6f 70 65 6e 46 | 69 6c 65 73 28 20 29 0d |/* openF|iles( ).|
|00001040| 2a 2a 0d 2a 2a 20 47 6f | 20 74 68 72 6f 75 67 68 |**.** Go| through|
|00001050| 20 66 69 6c 65 73 20 6f | 6e 65 20 62 79 20 6f 6e | files o|ne by on|
|00001060| 65 2c 20 70 72 6f 63 65 | 73 73 69 6e 67 20 74 68 |e, proce|ssing th|
|00001070| 65 6d 20 61 6c 6f 6e 67 | 20 74 68 65 20 77 61 79 |em along| the way|
|00001080| 2e 0d 2a 2f 0d 0d 76 6f | 69 64 20 6f 70 65 6e 46 |..*/..vo|id openF|
|00001090| 69 6c 65 73 28 20 29 0d | 7b 0d 09 46 53 53 70 65 |iles( ).|{..FSSpe|
|000010a0| 63 20 63 75 72 3b 0d 09 | 41 70 70 46 69 6c 65 20 |c cur;..|AppFile |
|000010b0| 61 46 69 6c 65 3b 0d 09 | 73 68 6f 72 74 20 63 6f |aFile;..|short co|
|000010c0| 75 6e 74 3b 0d 09 73 68 | 6f 72 74 20 69 3b 0d 09 |unt;..sh|ort i;..|
|000010d0| 73 68 6f 72 74 20 6d 65 | 73 73 3b 0d 09 0d 09 2f |short me|ss;..../|
|000010e0| 2a 20 49 27 6d 20 6e 6f | 74 20 62 6f 74 68 65 72 |* I'm no|t bother|
|000010f0| 69 6e 67 20 74 6f 20 63 | 68 65 63 6b 20 66 6f 72 |ing to c|heck for|
|00001100| 20 70 72 69 6e 74 20 6d | 65 73 73 61 67 65 73 2d | print m|essages-|
|00001110| 2d 6d 79 20 61 70 70 20 | 73 68 6f 75 6c 64 6e 27 |-my app |shouldn'|
|00001120| 74 20 67 65 74 0d 61 6e | 79 20 2a 2f 0d 09 43 6f |t get.an|y */..Co|
|00001130| 75 6e 74 41 70 70 46 69 | 6c 65 73 28 20 26 6d 65 |untAppFi|les( &me|
|00001140| 73 73 2c 20 26 63 6f 75 | 6e 74 20 29 3b 0d 09 0d |ss, &cou|nt );...|
|00001150| 09 66 6f 72 20 28 20 69 | 20 3d 20 31 3b 20 69 20 |.for ( i| = 1; i |
|00001160| 3c 3d 20 63 6f 75 6e 74 | 3b 20 69 2b 2b 20 29 0d |<= count|; i++ ).|
|00001170| 09 7b 0d 09 09 2f 2a 20 | 67 65 74 20 66 69 6c 65 |.{.../* |get file|
|00001180| 20 61 6e 64 20 63 6f 6e | 76 65 72 74 20 66 72 6f | and con|vert fro|
|00001190| 6d 20 77 6f 72 6b 69 6e | 67 20 64 69 72 20 74 6f |m workin|g dir to|
|000011a0| 20 46 53 53 70 65 63 20 | 2a 2f 0d 09 09 47 65 74 | FSSpec |*/...Get|
|000011b0| 41 70 70 46 69 6c 65 73 | 28 20 69 2c 20 26 61 46 |AppFiles|( i, &aF|
|000011c0| 69 6c 65 20 29 3b 0d 09 | 09 46 53 4d 61 6b 65 46 |ile );..|.FSMakeF|
|000011d0| 53 53 70 65 63 28 20 61 | 46 69 6c 65 2e 76 52 65 |SSpec( a|File.vRe|
|000011e0| 66 4e 75 6d 2c 20 30 2c | 20 61 46 69 6c 65 2e 66 |fNum, 0,| aFile.f|
|000011f0| 4e 61 6d 65 2c 20 26 63 | 75 72 20 29 3b 0d 09 09 |Name, &c|ur );...|
|00001200| 0d 09 09 70 72 6f 63 65 | 73 73 46 69 6c 65 28 20 |...proce|ssFile( |
|00001210| 26 63 75 72 20 29 3b 0d | 09 7d 0d 7d 0d 0d 6d 61 |&cur );.|.}.}..ma|
|00001220| 69 6e 28 20 29 0d 7b 0d | 09 69 6e 69 74 4d 61 63 |in( ).{.|.initMac|
|00001230| 69 6e 74 6f 73 68 28 20 | 29 3b 0d 09 69 6e 69 74 |intosh( |);..init|
|00001240| 41 70 70 6c 69 63 61 74 | 69 6f 6e 28 20 29 3b 0d |Applicat|ion( );.|
|00001250| 09 0d 09 69 66 20 28 20 | 6f 70 65 6e 69 6e 67 46 |...if ( |openingF|
|00001260| 69 6c 65 73 28 20 29 20 | 29 0d 09 09 6f 70 65 6e |iles( ) |)...open|
|00001270| 46 69 6c 65 73 28 20 29 | 3b 0d 09 65 6c 73 65 0d |Files( )|;..else.|
|00001280| 09 09 72 75 6e 41 70 70 | 6c 69 63 61 74 69 6f 6e |..runApp|lication|
|00001290| 28 20 29 3b 0d 7d 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |( );.}..|++++++++|
|000012a0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000012b0| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 72 75 68 6c 40 |+++..>Fr|om ruhl@|
|000012c0| 64 75 2e 65 64 75 20 28 | 52 4f 42 45 52 54 20 41 |du.edu (|ROBERT A|
|000012d0| 2e 20 55 48 4c 20 29 0d | 44 61 74 65 3a 20 46 72 |. UHL ).|Date: Fr|
|000012e0| 69 2c 20 32 33 20 53 65 | 70 20 31 39 39 34 20 31 |i, 23 Se|p 1994 1|
|000012f0| 35 3a 33 34 3a 31 31 20 | 47 4d 54 0d 4f 72 67 61 |5:34:11 |GMT.Orga|
|00001300| 6e 69 7a 61 74 69 6f 6e | 3a 20 55 6e 69 76 65 72 |nization|: Univer|
|00001310| 73 69 74 79 20 6f 66 20 | 44 65 6e 76 65 72 0d 0d |sity of |Denver..|
|00001320| 20 20 44 6f 65 73 20 61 | 6e 79 62 6f 64 79 20 68 | Does a|nybody h|
|00001330| 61 76 65 20 74 68 65 20 | 66 6f 72 6d 61 74 20 6f |ave the |format o|
|00001340| 66 20 74 68 65 20 48 61 | 6e 64 6c 65 20 72 65 74 |f the Ha|ndle ret|
|00001350| 75 72 6e 65 64 20 62 79 | 0d 47 65 74 41 70 70 50 |urned by|.GetAppP|
|00001360| 61 72 6d 73 28 29 3f 20 | 49 20 64 6f 6e 27 74 20 |arms()? |I don't |
|00001370| 68 61 76 65 20 49 4d 20 | 61 6e 64 20 68 61 76 65 |have IM |and have|
|00001380| 20 74 6f 20 66 69 67 75 | 72 65 20 6f 75 74 20 77 | to figu|re out w|
|00001390| 68 61 74 20 74 68 65 0d | 66 75 6e 63 74 69 6f 6e |hat the.|function|
|000013a0| 73 20 64 6f 20 66 72 6f | 6d 20 74 68 65 20 68 65 |s do fro|m the he|
|000013b0| 61 64 65 72 73 2e 20 41 | 6e 79 20 68 65 6c 70 20 |aders. A|ny help |
|000013c0| 77 6f 75 6c 64 20 62 65 | 20 61 70 70 72 65 63 69 |would be| appreci|
|000013d0| 61 74 65 64 2e 0d 2d 2d | 20 0d 2d 20 2d 2d 2d 2d |ated..--| .- ----|
|000013e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000013f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001400| 0d 7c 20 42 6f 62 20 55 | 68 6c 20 7c 20 53 70 65 |.| Bob U|hl | Spe|
|00001410| 63 74 72 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |ctre | |
|00001420| 20 20 20 20 20 20 7c 0d | 7c 20 55 20 6f 66 20 44 | |.|| U of D|
|00001430| 20 20 7c 20 42 61 72 6f | 6e 20 52 6f 62 65 72 74 | | Baro|n Robert|
|00001440| 20 76 6f 6e 20 52 61 65 | 74 7a 69 6e 20 7c 0d 0d | von Rae|tzin |..|
|00001450| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001460| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00001470| 6f 6d 20 43 61 72 6c 20 | 52 2e 20 4f 73 74 65 72 |om Carl |R. Oster|
|00001480| 77 61 6c 64 20 3c 63 61 | 72 6c 5f 6f 73 74 65 72 |wald <ca|rl_oster|
|00001490| 77 61 6c 64 40 6e 72 65 | 6c 2e 67 6f 76 3e 0d 44 |wald@nre|l.gov>.D|
|000014a0| 61 74 65 3a 20 46 72 69 | 2c 20 32 33 20 53 65 70 |ate: Fri|, 23 Sep|
|000014b0| 20 31 39 39 34 20 32 30 | 3a 34 38 3a 33 32 20 47 | 1994 20|:48:32 G|
|000014c0| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000014d0| 20 4e 61 74 69 6f 6e 61 | 6c 20 52 65 6e 65 77 61 | Nationa|l Renewa|
|000014e0| 62 6c 65 20 45 6e 65 72 | 67 79 20 4c 61 62 6f 72 |ble Ener|gy Labor|
|000014f0| 61 74 6f 72 79 0d 0d 49 | 6e 20 61 72 74 69 63 6c |atory..I|n articl|
|00001500| 65 20 3c 33 35 73 73 63 | 6b 24 6d 33 61 40 67 65 |e <35ssc|k$m3a@ge|
|00001510| 72 61 6c 64 6f 2e 63 63 | 2e 75 74 65 78 61 73 2e |raldo.cc|.utexas.|
|00001520| 65 64 75 3e 20 76 69 63 | 74 6f 72 20 63 68 6f 6e |edu> vic|tor chon|
|00001530| 67 2c 0d 76 69 63 74 6f | 72 63 40 73 6c 65 65 70 |g,.victo|rc@sleep|
|00001540| 79 2e 63 63 2e 75 74 65 | 78 61 73 2e 65 64 75 20 |y.cc.ute|xas.edu |
|00001550| 77 72 69 74 65 73 3a 0d | 3e 09 49 20 77 61 73 20 |writes:.|>.I was |
|00001560| 77 6f 6e 64 65 72 69 6e | 67 20 69 66 20 73 6f 6d |wonderin|g if som|
|00001570| 65 6f 6e 65 20 63 6f 75 | 6c 64 20 65 6e 6c 69 67 |eone cou|ld enlig|
|00001580| 68 74 65 6e 20 6d 65 20 | 63 6f 6e 63 65 72 6e 69 |hten me |concerni|
|00001590| 6e 67 0d 3e 74 68 65 20 | 75 73 61 67 65 20 6f 66 |ng.>the |usage of|
|000015a0| 20 61 72 67 76 20 61 6e | 64 20 61 72 67 63 20 77 | argv an|d argc w|
|000015b0| 68 65 6e 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |hen prog|ramming |
|000015c0| 6f 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |on the M|acintosh|
|000015d0| 2e 0d 3e 49 27 6d 20 75 | 73 69 6e 67 20 53 79 6d |..>I'm u|sing Sym|
|000015e0| 61 6e 74 65 63 20 43 2b | 2b 2e 0d 3e 09 44 6f 65 |antec C+|+..>.Doe|
|000015f0| 73 20 74 68 65 20 4d 61 | 63 20 61 6c 6c 6f 77 73 |s the Ma|c allows|
|00001600| 20 74 68 69 73 20 6b 69 | 6e 64 20 6f 66 20 63 6f | this ki|nd of co|
|00001610| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 77 69 74 68 |mmunicat|ion with|
|00001620| 20 74 68 65 0d 3e 4f 53 | 20 6f 72 20 69 73 20 74 | the.>OS| or is t|
|00001630| 68 65 72 65 20 61 6e 6f | 74 68 65 72 20 6d 65 74 |here ano|ther met|
|00001640| 68 6f 64 2e 0d 0d 4a 75 | 73 74 20 75 73 65 20 74 |hod...Ju|st use t|
|00001650| 68 65 20 53 79 6d 61 6e | 74 65 63 20 63 6f 6e 73 |he Syman|tec cons|
|00001660| 6f 6c 65 20 70 61 63 6b | 61 67 65 2e 20 20 59 6f |ole pack|age. Yo|
|00001670| 75 20 77 69 6c 6c 20 6e | 65 65 64 20 74 6f 20 61 |u will n|eed to a|
|00001680| 64 64 20 6f 6e 65 20 6b | 65 79 0d 65 6c 65 6d 65 |dd one k|ey.eleme|
|00001690| 6e 74 2c 20 61 20 63 63 | 6f 6d 6d 61 6e 64 28 29 |nt, a cc|ommand()|
|000016a0| 20 63 61 6c 6c 2c 20 62 | 65 66 6f 72 65 20 79 6f | call, b|efore yo|
|000016b0| 75 20 61 63 63 65 73 73 | 20 61 72 67 76 2f 61 72 |u access| argv/ar|
|000016c0| 67 63 2e 20 20 54 68 69 | 73 20 70 75 74 73 20 75 |gc. Thi|s puts u|
|000016d0| 70 20 61 0d 64 69 61 6c | 6f 67 20 62 6f 78 20 74 |p a.dial|og box t|
|000016e0| 68 61 74 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |hat allo|ws you t|
|000016f0| 6f 20 74 79 70 65 20 69 | 6e 20 74 68 65 20 63 6f |o type i|n the co|
|00001700| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 70 61 72 61 6d |mmand li|ne param|
|00001710| 65 74 65 72 73 2e 20 0d | 63 63 6f 6d 6d 61 6e 64 |eters. .|ccommand|
|00001720| 28 29 20 77 61 73 20 64 | 6f 63 75 6d 65 6e 74 65 |() was d|ocumente|
|00001730| 64 20 69 6e 20 74 68 65 | 20 54 68 69 6e 6b 20 43 |d in the| Think C|
|00001740| 20 35 20 6d 61 6e 75 61 | 6c 73 2c 20 69 6e 20 36 | 5 manua|ls, in 6|
|00001750| 20 61 6e 64 20 37 20 69 | 74 20 69 73 0d 6f 6e 6c | and 7 i|t is.onl|
|00001760| 69 6e 65 20 69 6e 73 69 | 64 65 20 74 68 65 20 66 |ine insi|de the f|
|00001770| 72 65 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 54 |ree vers|ion of T|
|00001780| 68 69 6e 6b 20 52 65 66 | 65 72 65 6e 63 65 20 28 |hink Ref|erence (|
|00001790| 49 20 68 61 76 65 20 6e | 6f 74 20 76 65 72 69 66 |I have n|ot verif|
|000017a0| 69 65 64 0d 74 68 69 73 | 20 70 65 72 73 6f 6e 61 |ied.this| persona|
|000017b0| 6c 6c 79 29 2e 0d 0d 46 | 6f 72 20 64 69 73 6b 20 |lly)...F|or disk |
|000017c0| 49 2f 4f 20 62 65 20 73 | 75 72 65 20 74 6f 20 63 |I/O be s|ure to c|
|000017d0| 68 65 63 6b 20 74 68 65 | 20 63 2e 73 2e 6d 2e 70 |heck the| c.s.m.p|
|000017e0| 20 50 44 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 | PD prog|ramming |
|000017f0| 46 41 51 20 63 6f 6d 70 | 69 6c 65 64 20 62 79 0d |FAQ comp|iled by.|
|00001800| 4a 6f 6e 20 57 61 74 74 | 65 2e 0d 0d 2b 2b 2b 2b |Jon Watt|e...++++|
|00001810| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001820| 2b 2b 2b 2b 2b 2b 2b 0d | 0d 3e 46 72 6f 6d 20 72 |+++++++.|.>From r|
|00001830| 72 6b 40 72 61 68 75 6c | 2e 6e 65 74 20 28 42 6f |rk@rahul|.net (Bo|
|00001840| 62 20 52 2e 20 4b 65 6e | 79 6f 6e 29 0d 44 61 74 |b R. Ken|yon).Dat|
|00001850| 65 3a 20 53 61 74 2c 20 | 32 34 20 53 65 70 20 31 |e: Sat, |24 Sep 1|
|00001860| 39 39 34 20 30 35 3a 35 | 34 3a 30 34 20 47 4d 54 |994 05:5|4:04 GMT|
|00001870| 0d 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 4c |.Organiz|ation: L|
|00001880| 61 20 43 61 73 69 74 61 | 20 64 65 20 4c 61 73 20 |a Casita| de Las |
|00001890| 50 75 6c 67 61 73 2c 20 | 53 61 6e 20 4a 6f 73 65 |Pulgas, |San Jose|
|000018a0| 2c 20 43 41 0d 0d 49 6e | 20 61 72 74 69 63 6c 65 |, CA..In| article|
|000018b0| 20 3c 33 35 73 73 63 6b | 24 6d 33 61 40 67 65 72 | <35ssck|$m3a@ger|
|000018c0| 61 6c 64 6f 2e 63 63 2e | 75 74 65 78 61 73 2e 65 |aldo.cc.|utexas.e|
|000018d0| 64 75 3e 2c 20 76 69 63 | 74 6f 72 20 63 68 6f 6e |du>, vic|tor chon|
|000018e0| 67 0d 3c 76 69 63 74 6f | 72 63 40 73 6c 65 65 70 |g.<victo|rc@sleep|
|000018f0| 79 2e 63 63 2e 75 74 65 | 78 61 73 2e 65 64 75 3e |y.cc.ute|xas.edu>|
|00001900| 20 77 72 6f 74 65 3a 0d | 0d 3e 20 48 69 2c 0d 3e | wrote:.|.> Hi,.>|
|00001910| 20 20 20 20 20 20 20 20 | 20 49 20 77 61 73 20 77 | | I was w|
|00001920| 6f 6e 64 65 72 69 6e 67 | 20 69 66 20 73 6f 6d 65 |ondering| if some|
|00001930| 6f 6e 65 20 63 6f 75 6c | 64 20 65 6e 6c 69 67 68 |one coul|d enligh|
|00001940| 74 65 6e 20 6d 65 20 63 | 6f 6e 63 65 72 6e 69 6e |ten me c|oncernin|
|00001950| 67 0d 3e 20 74 68 65 20 | 75 73 61 67 65 20 6f 66 |g.> the |usage of|
|00001960| 20 61 72 67 76 20 61 6e | 64 20 61 72 67 63 20 77 | argv an|d argc w|
|00001970| 68 65 6e 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |hen prog|ramming |
|00001980| 6f 6e 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |on the M|acintosh|
|00001990| 2e 0d 3e 20 49 27 6d 20 | 75 73 69 6e 67 20 53 79 |..> I'm |using Sy|
|000019a0| 6d 61 6e 74 65 63 20 43 | 2b 2b 2e 0d 3e 20 20 20 |mantec C|++..> |
|000019b0| 20 20 20 20 20 20 44 6f | 65 73 20 74 68 65 20 4d | Do|es the M|
|000019c0| 61 63 20 61 6c 6c 6f 77 | 73 20 74 68 69 73 20 6b |ac allow|s this k|
|000019d0| 69 6e 64 20 6f 66 20 63 | 6f 6d 6d 75 6e 69 63 61 |ind of c|ommunica|
|000019e0| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 0d 3e 20 |tion wit|h the.> |
|000019f0| 4f 53 20 6f 72 20 69 73 | 20 74 68 65 72 65 20 61 |OS or is| there a|
|00001a00| 6e 6f 74 68 65 72 20 6d | 65 74 68 6f 64 2e 0d 3e |nother m|ethod..>|
|00001a10| 20 20 20 20 20 20 20 20 | 20 41 6e 79 20 6b 69 6e | | Any kin|
|00001a20| 64 20 6f 66 20 68 65 6c | 70 20 77 69 6c 6c 20 62 |d of hel|p will b|
|00001a30| 65 20 6d 75 63 68 20 77 | 65 6c 63 6f 6d 65 2e 0d |e much w|elcome..|
|00001a40| 3e 20 20 20 20 20 20 20 | 20 20 54 68 61 6e 6b 20 |> | Thank |
|00001a50| 79 6f 75 20 76 65 72 79 | 20 6d 75 63 68 2e 0d 0d |you very| much...|
|00001a60| 59 65 61 68 2c 20 69 66 | 20 79 6f 75 20 6c 6f 6f |Yeah, if| you loo|
|00001a70| 6b 20 69 6e 20 54 68 69 | 6e 6b 20 52 65 66 65 72 |k in Thi|nk Refer|
|00001a80| 65 6e 63 65 2c 20 74 68 | 65 79 20 74 61 6c 6b 20 |ence, th|ey talk |
|00001a90| 61 62 6f 75 74 20 61 20 | 66 75 6e 63 74 69 6f 6e |about a |function|
|00001aa0| 20 63 61 6c 6c 65 64 0d | 63 63 6f 6d 6d 61 6e 64 | called.|ccommand|
|00001ab0| 2e 20 57 68 65 6e 20 79 | 6f 75 72 20 70 72 6f 67 |. When y|our prog|
|00001ac0| 72 61 6d 20 73 74 61 72 | 74 73 2c 20 69 74 20 74 |ram star|ts, it t|
|00001ad0| 68 72 6f 77 73 20 75 70 | 20 61 20 77 69 6e 64 6f |hrows up| a windo|
|00001ae0| 77 20 74 68 61 74 20 61 | 6c 6c 6f 77 73 20 79 6f |w that a|llows yo|
|00001af0| 75 0d 74 6f 20 72 65 64 | 69 72 65 63 74 20 69 6e |u.to red|irect in|
|00001b00| 70 75 74 20 61 6e 64 20 | 6f 75 74 70 75 74 2c 20 |put and |output, |
|00001b10| 61 6e 64 20 65 6e 74 65 | 72 20 63 6f 6d 6d 61 6e |and ente|r comman|
|00001b20| 64 20 6c 69 6e 65 20 61 | 72 67 75 6d 65 6e 74 73 |d line a|rguments|
|00001b30| 2e 20 49 74 27 73 0d 70 | 72 65 74 74 79 20 66 75 |. It's.p|retty fu|
|00001b40| 6e 6e 79 20 61 63 74 75 | 61 6c 6c 79 2c 20 62 75 |nny actu|ally, bu|
|00001b50| 74 20 6e 6f 74 20 72 65 | 61 6c 6c 79 20 22 4d 61 |t not re|ally "Ma|
|00001b60| 63 22 20 69 6e 20 62 65 | 68 61 76 69 6f 72 2e 0d |c" in be|havior..|
|00001b70| 0d 54 68 65 69 72 20 63 | 6f 64 65 20 65 78 61 6d |.Their c|ode exam|
|00001b80| 70 6c 65 20 6c 6f 6f 6b | 73 20 6c 69 6b 65 20 74 |ple look|s like t|
|00001b90| 68 69 73 3a 0d 0d 0d 2f | 2a 20 43 4f 44 45 20 45 |his:.../|* CODE E|
|00001ba0| 58 41 4d 50 4c 45 20 23 | 31 20 2a 2f 0d 23 69 6e |XAMPLE #|1 */.#in|
|00001bb0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0d |clude <s|tdio.h>.|
|00001bc0| 23 69 6e 63 6c 75 64 65 | 20 3c 63 6f 6e 73 6f 6c |#include| <consol|
|00001bd0| 65 2e 68 3e 0d 0d 6d 61 | 69 6e 28 69 6e 74 20 61 |e.h>..ma|in(int a|
|00001be0| 72 67 63 2c 20 63 68 61 | 72 20 2a 2a 61 72 67 76 |rgc, cha|r **argv|
|00001bf0| 29 0d 7b 0d 20 20 20 69 | 6e 74 20 69 3b 0d 0d 20 |).{. i|nt i;.. |
|00001c00| 20 20 61 72 67 63 20 3d | 20 63 63 6f 6d 6d 61 6e | argc =| ccomman|
|00001c10| 64 28 26 61 72 67 76 29 | 3b 20 20 2f 2f 20 74 68 |d(&argv)|; // th|
|00001c20| 69 73 20 69 73 20 74 68 | 65 20 63 6f 6d 6d 61 6e |is is th|e comman|
|00001c30| 64 20 74 68 61 74 20 74 | 68 72 6f 77 73 20 75 70 |d that t|hrows up|
|00001c40| 20 74 68 65 20 77 69 6e | 64 6f 77 0d 0d 20 20 20 | the win|dow.. |
|00001c50| 66 6f 72 20 28 69 3d 30 | 3b 20 69 3c 61 72 67 63 |for (i=0|; i<argc|
|00001c60| 3b 20 69 2b 2b 29 0d 20 | 20 20 20 20 20 70 72 69 |; i++). | pri|
|00001c70| 6e 74 66 20 28 22 25 73 | 20 22 2c 20 61 72 67 76 |ntf ("%s| ", argv|
|00001c80| 5b 69 5d 29 3b 0d 0d 20 | 20 20 70 72 69 6e 74 66 |[i]);.. | printf|
|00001c90| 20 28 22 5c 6e 22 29 3b | 0d 7d 0d 0d 49 20 75 73 | ("\n");|.}..I us|
|00001ca0| 65 20 74 68 69 73 20 74 | 65 63 68 6e 69 71 75 65 |e this t|echnique|
|00001cb0| 20 61 6c 6c 20 74 68 65 | 20 74 69 6d 65 20 66 6f | all the| time fo|
|00001cc0| 72 20 6d 79 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |r my pro|gramming|
|00001cd0| 20 63 6c 61 73 73 65 73 | 2c 20 62 65 63 61 75 73 | classes|, becaus|
|00001ce0| 65 20 74 68 65 79 0d 68 | 61 76 65 6e 27 74 20 63 |e they.h|aven't c|
|00001cf0| 6f 76 65 72 65 64 20 61 | 6e 79 20 6b 69 6e 64 20 |overed a|ny kind |
|00001d00| 6f 66 20 77 69 6e 64 6f | 77 69 6e 67 20 73 74 75 |of windo|wing stu|
|00001d10| 66 66 2e 20 0d 0d 48 6f | 70 65 20 74 68 69 73 20 |ff. ..Ho|pe this |
|00001d20| 68 65 6c 70 73 2c 0d 42 | 6f 62 0d 0d 2d 2d 20 0d |helps,.B|ob..-- .|
|00001d30| 42 6f 62 20 4b 65 6e 79 | 6f 6e 20 20 20 20 20 20 |Bob Keny|on |
|00001d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d50| 20 20 20 20 20 7c 20 22 | 50 69 6c 6f 74 73 20 74 | | "|Pilots t|
|00001d60| 61 6b 65 20 6e 6f 20 73 | 70 65 63 69 61 6c 20 6a |ake no s|pecial j|
|00001d70| 6f 79 0d 42 65 61 75 74 | 69 66 75 6c 20 44 6f 77 |oy.Beaut|iful Dow|
|00001d80| 6e 74 6f 77 6e 20 53 61 | 6e 20 4a 6f 73 65 2c 20 |ntown Sa|n Jose, |
|00001d90| 43 41 20 20 20 20 20 20 | 7c 20 20 69 6e 20 77 61 |CA || in wa|
|00001da0| 6c 6b 69 6e 67 2e 20 50 | 69 6c 6f 74 73 20 6c 69 |lking. P|ilots li|
|00001db0| 6b 65 0d 72 72 6b 40 72 | 61 68 75 6c 2e 6e 65 74 |ke.rrk@r|ahul.net|
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dd0| 20 20 20 20 20 20 20 20 | 7c 20 20 66 6c 79 69 6e | || flyin|
|00001de0| 67 2e 22 20 2d 2d 20 4e | 65 69 6c 20 41 72 6d 73 |g." -- N|eil Arms|
|00001df0| 74 72 6f 6e 67 0d 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |trong..-|--------|
|00001e00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e10| 2d 2d 0d 0d 3e 46 72 6f | 6d 20 66 65 72 72 61 72 |--..>Fro|m ferrar|
|00001e20| 69 40 6e 65 74 61 78 73 | 2e 63 6f 6d 20 28 44 61 |i@netaxs|.com (Da|
|00001e30| 72 72 65 6c 6c 20 54 75 | 72 6e 65 72 29 0d 53 75 |rrell Tu|rner).Su|
|00001e40| 62 6a 65 63 74 3a 20 48 | 6f 77 20 74 6f 20 43 68 |bject: H|ow to Ch|
|00001e50| 65 63 6b 20 69 66 20 64 | 72 69 76 65 72 73 20 61 |eck if d|rivers a|
|00001e60| 72 65 20 6f 70 65 6e 0d | 44 61 74 65 3a 20 54 68 |re open.|Date: Th|
|00001e70| 75 2c 20 32 32 20 53 65 | 70 20 31 39 39 34 20 31 |u, 22 Se|p 1994 1|
|00001e80| 33 3a 32 36 3a 33 38 20 | 2d 30 35 30 30 0d 4f 72 |3:26:38 |-0500.Or|
|00001e90| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 48 61 68 61 |ganizati|on: Haha|
|00001ea0| 2c 20 4e 6f 6e 65 20 68 | 65 72 65 0d 0d 49 27 6d |, None h|ere..I'm|
|00001eb0| 20 74 72 79 69 6e 67 20 | 74 6f 20 66 69 67 75 72 | trying |to figur|
|00001ec0| 65 20 6f 75 74 20 68 6f | 77 20 74 6f 20 63 68 65 |e out ho|w to che|
|00001ed0| 63 6b 20 69 66 20 61 20 | 64 72 69 76 65 72 20 69 |ck if a |driver i|
|00001ee0| 73 20 6f 70 65 6e 20 62 | 79 20 6f 6e 6c 79 0d 73 |s open b|y only.s|
|00001ef0| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 64 72 |pecifyin|g the dr|
|00001f00| 69 76 65 72 20 6e 61 6d | 65 2e 20 20 49 20 77 61 |iver nam|e. I wa|
|00001f10| 6e 74 20 69 74 20 74 6f | 20 77 6f 72 6b 20 66 6f |nt it to| work fo|
|00001f20| 72 20 2e 49 50 50 20 2e | 41 4f 75 74 2c 20 61 6e |r .IPP .|AOut, an|
|00001f30| 64 20 6f 74 68 65 72 73 | 0d 73 75 63 68 20 61 73 |d others|.such as|
|00001f40| 20 72 61 6d 20 73 65 72 | 61 69 6c 20 64 72 69 76 | ram ser|ail driv|
|00001f50| 65 72 73 20 66 6f 72 20 | 48 75 72 64 6c 65 72 73 |ers for |Hurdlers|
|00001f60| 2c 20 65 74 63 2e 0d 0d | 4d 79 20 70 72 6f 62 6c |, etc...|My probl|
|00001f70| 65 6d 20 69 73 20 74 68 | 61 74 20 49 20 63 61 6e |em is th|at I can|
|00001f80| 27 74 20 66 69 67 75 72 | 65 20 6f 75 74 20 69 66 |'t figur|e out if|
|00001f90| 20 69 74 27 73 20 6f 70 | 65 6e 20 77 69 74 68 6f | it's op|en witho|
|00001fa0| 75 74 20 66 69 72 73 74 | 20 6b 6e 6f 77 69 6e 67 |ut first| knowing|
|00001fb0| 0d 74 68 65 20 64 72 69 | 76 65 72 20 75 6e 69 74 |.the dri|ver unit|
|00001fc0| 20 6e 75 6d 62 65 72 2e | 20 20 49 20 77 61 73 20 | number.| I was |
|00001fd0| 67 6f 69 6e 67 20 74 6f | 20 77 61 6c 6b 20 74 68 |going to| walk th|
|00001fe0| 65 20 55 6e 69 74 54 61 | 62 6c 65 20 63 68 65 63 |e UnitTa|ble chec|
|00001ff0| 6b 69 6e 67 20 66 6f 72 | 20 74 68 65 0d 44 72 69 |king for| the.Dri|
|00002000| 76 65 72 20 4e 61 6d 65 | 20 20 69 6e 20 74 68 65 |ver Name| in the|
|00002010| 20 44 43 74 6c 45 6e 74 | 72 79 2c 20 62 75 74 20 | DCtlEnt|ry, but |
|00002020| 49 20 73 6f 6f 6e 20 64 | 69 73 63 6f 76 65 72 65 |I soon d|iscovere|
|00002030| 64 20 74 68 61 74 20 74 | 68 65 20 6e 61 6d 65 20 |d that t|he name |
|00002040| 69 73 20 69 6e 0d 74 68 | 65 72 65 2e 20 20 54 68 |is in.th|ere. Th|
|00002050| 69 73 20 69 73 20 6d 79 | 20 63 75 72 72 65 6e 74 |is is my| current|
|00002060| 20 63 6f 64 65 2c 20 61 | 6e 64 20 69 74 20 64 6f | code, a|nd it do|
|00002070| 65 73 6e 27 74 20 77 6f | 72 6b 2c 20 68 6f 77 20 |esn't wo|rk, how |
|00002080| 63 61 6e 20 49 20 67 65 | 74 20 74 68 69 73 0d 77 |can I ge|t this.w|
|00002090| 6f 72 6b 69 6e 67 3f 20 | 20 28 54 68 65 20 47 65 |orking? | (The Ge|
|000020a0| 74 4e 61 6d 65 64 52 65 | 73 6f 75 72 63 65 20 72 |tNamedRe|source r|
|000020b0| 65 74 75 72 6e 73 20 6e | 69 6c 2c 20 65 76 65 6e |eturns n|il, even|
|000020c0| 20 6f 6e 20 73 74 75 66 | 66 20 49 20 6b 6e 6f 77 | on stuf|f I know|
|000020d0| 20 69 73 20 69 6e 20 74 | 68 65 0d 53 79 73 74 65 | is in t|he.Syste|
|000020e0| 6d 20 66 69 6c 65 20 6c | 69 6b 65 20 2e 41 4f 75 |m file l|ike .AOu|
|000020f0| 74 2e 0d 0d 09 66 75 6e | 63 74 69 6f 6e 20 47 65 |t....fun|ction Ge|
|00002100| 74 4e 61 6d 65 64 44 43 | 74 6c 45 6e 74 72 79 20 |tNamedDC|tlEntry |
|00002110| 28 64 72 69 76 65 72 4e | 61 6d 65 3a 20 73 74 72 |(driverN|ame: str|
|00002120| 32 35 35 29 3a 20 44 43 | 74 6c 48 61 6e 64 6c 65 |255): DC|tlHandle|
|00002130| 3b 0d 09 09 74 79 70 65 | 0d 09 09 09 50 74 72 32 |;...type|....Ptr2|
|00002140| 57 6f 72 64 20 3d 20 5e | 69 6e 74 65 67 65 72 3b |Word = ^|integer;|
|00002150| 0d 09 09 09 50 74 72 32 | 42 79 74 65 20 3d 20 5e |....Ptr2|Byte = ^|
|00002160| 62 79 74 65 3b 0d 09 09 | 63 6f 6e 73 74 0d 09 09 |byte;...|const...|
|00002170| 09 55 6e 69 74 4e 74 72 | 79 43 6e 74 20 3d 20 24 |.UnitNtr|yCnt = $|
|00002180| 31 44 32 3b 20 7b 5b 47 | 4c 4f 42 41 4c 20 56 41 |1D2; {[G|LOBAL VA|
|00002190| 52 5d 20 20 63 6f 75 6e | 74 20 6f 66 20 65 6e 74 |R] coun|t of ent|
|000021a0| 72 69 65 73 20 69 6e 20 | 75 6e 69 74 20 74 61 62 |ries in |unit tab|
|000021b0| 6c 65 0d 5b 77 6f 72 64 | 5d 7d 0d 09 09 09 52 6f |le.[word|]}....Ro|
|000021c0| 6d 4d 61 70 49 6e 73 65 | 72 74 20 3d 20 24 42 39 |mMapInse|rt = $B9|
|000021d0| 45 3b 7b 5b 47 4c 4f 42 | 41 4c 20 56 41 52 5d 20 |E;{[GLOB|AL VAR] |
|000021e0| 28 62 79 74 65 29 20 64 | 65 74 65 72 6d 69 6e 65 |(byte) d|etermine|
|000021f0| 73 20 69 66 20 77 65 20 | 73 68 6f 75 6c 64 20 6c |s if we |should l|
|00002200| 69 6e 6b 20 69 6e 0d 6d | 61 70 7d 0d 0d 09 09 76 |ink in.m|ap}....v|
|00002210| 61 72 0d 09 09 09 72 49 | 44 3a 20 69 6e 74 65 67 |ar....rI|D: integ|
|00002220| 65 72 3b 0d 09 09 09 72 | 54 79 70 65 3a 20 52 65 |er;....r|Type: Re|
|00002230| 73 54 79 70 65 3b 0d 09 | 09 09 68 61 6e 64 3a 20 |sType;..|..hand: |
|00002240| 68 61 6e 64 6c 65 3b 0d | 09 62 65 67 69 6e 0d 09 |handle;.|.begin..|
|00002250| 09 53 65 74 52 65 73 4c | 6f 61 64 28 66 61 6c 73 |.SetResL|oad(fals|
|00002260| 65 29 3b 0d 09 09 50 74 | 72 32 42 79 74 65 28 52 |e);...Pt|r2Byte(R|
|00002270| 6f 6d 4d 61 70 49 6e 73 | 65 72 74 29 5e 20 3a 3d |omMapIns|ert)^ :=|
|00002280| 20 31 3b 0d 09 09 68 61 | 6e 64 20 3a 3d 20 47 65 | 1;...ha|nd := Ge|
|00002290| 74 4e 61 6d 65 64 52 65 | 73 6f 75 72 63 65 28 27 |tNamedRe|source('|
|000022a0| 44 52 56 52 27 2c 20 64 | 72 69 76 65 72 4e 61 6d |DRVR', d|riverNam|
|000022b0| 65 29 3b 0d 09 09 53 65 | 74 52 65 73 4c 6f 61 64 |e);...Se|tResLoad|
|000022c0| 28 74 72 75 65 29 3b 0d | 09 09 47 65 74 52 65 73 |(true);.|..GetRes|
|000022d0| 49 6e 66 6f 28 68 61 6e | 64 2c 20 72 49 44 2c 20 |Info(han|d, rID, |
|000022e0| 72 54 79 70 65 2c 20 64 | 72 69 76 65 72 4e 61 6d |rType, d|riverNam|
|000022f0| 65 29 3b 0d 09 09 69 66 | 20 28 72 49 44 20 3e 3d |e);...if| (rID >=|
|00002300| 20 30 29 20 61 6e 64 20 | 28 72 49 44 20 3c 3d 20 | 0) and |(rID <= |
|00002310| 50 74 72 32 57 6f 72 64 | 28 55 6e 69 74 4e 74 72 |Ptr2Word|(UnitNtr|
|00002320| 79 43 6e 74 29 5e 29 20 | 74 68 65 6e 0d 09 09 09 |yCnt)^) |then....|
|00002330| 47 65 74 4e 61 6d 65 64 | 44 43 74 6c 45 6e 74 72 |GetNamed|DCtlEntr|
|00002340| 79 20 3a 3d 20 47 65 74 | 44 43 74 6c 45 6e 74 72 |y := Get|DCtlEntr|
|00002350| 79 28 72 49 44 29 0d 09 | 09 65 6c 73 65 0d 09 09 |y(rID)..|.else...|
|00002360| 09 47 65 74 4e 61 6d 65 | 64 44 43 74 6c 45 6e 74 |.GetName|dDCtlEnt|
|00002370| 72 79 20 3a 3d 20 6e 69 | 6c 3b 0d 09 65 6e 64 3b |ry := ni|l;..end;|
|00002380| 0d 0d 62 65 67 69 6e 0d | 09 64 63 74 6c 20 3a 3d |..begin.|.dctl :=|
|00002390| 20 47 65 74 4e 61 6d 65 | 64 44 43 74 6c 45 6e 74 | GetName|dDCtlEnt|
|000023a0| 72 79 28 27 2e 49 50 50 | 27 29 3b 0d 09 69 66 20 |ry('.IPP|');..if |
|000023b0| 64 43 74 6c 20 3d 20 6e | 69 6c 20 74 68 65 6e 0d |dCtl = n|il then.|
|000023c0| 09 09 51 75 69 74 28 6e | 6f 45 72 72 29 3b 0d 09 |..Quit(n|oErr);..|
|000023d0| 49 6e 69 74 3b 0d 09 72 | 65 70 65 61 74 0d 09 09 |Init;..r|epeat...|
|000023e0| 48 61 6e 64 6c 65 45 76 | 65 6e 74 73 3b 0d 09 75 |HandleEv|ents;..u|
|000023f0| 6e 74 69 6c 20 28 42 69 | 74 54 73 74 28 40 64 63 |ntil (Bi|tTst(@dc|
|00002400| 74 6c 5e 5e 2e 64 43 74 | 6c 46 6c 61 67 73 2c 20 |tl^^.dCt|lFlags, |
|00002410| 35 29 20 6f 72 20 64 6f | 6e 65 29 3b 0d 20 7b 2e |5) or do|ne);. {.|
|00002420| 2e 2e 7d 0d 65 6e 64 2e | 0d 0d 2b 2b 2b 2b 2b 2b |..}.end.|..++++++|
|00002430| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002440| 2b 2b 2b 2b 2b 0d 0d 3e | 46 72 6f 6d 20 72 65 73 |+++++..>|From res|
|00002450| 6e 69 63 6b 40 75 69 75 | 63 2e 65 64 75 20 28 50 |nick@uiu|c.edu (P|
|00002460| 65 74 65 20 52 65 73 6e | 69 63 6b 29 0d 44 61 74 |ete Resn|ick).Dat|
|00002470| 65 3a 20 46 72 69 2c 20 | 32 33 20 53 65 70 20 31 |e: Fri, |23 Sep 1|
|00002480| 39 39 34 20 31 32 3a 33 | 36 3a 31 36 20 2d 30 35 |994 12:3|6:16 -05|
|00002490| 30 30 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|000024a0| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 49 | Univers|ity of I|
|000024b0| 6c 6c 69 6e 6f 69 73 20 | 61 74 20 55 72 62 61 6e |llinois |at Urban|
|000024c0| 61 2d 43 68 61 6d 70 61 | 69 67 6e 0d 0d 49 6e 20 |a-Champa|ign..In |
|000024d0| 61 72 74 69 63 6c 65 20 | 3c 66 65 72 72 61 72 69 |article |<ferrari|
|000024e0| 2d 32 32 30 39 39 34 31 | 33 32 36 33 39 40 73 6c |-2209941|32639@sl|
|000024f0| 69 70 2d 35 35 2e 6e 65 | 74 61 78 73 2e 63 6f 6d |ip-55.ne|taxs.com|
|00002500| 3e 2c 20 66 65 72 72 61 | 72 69 40 6e 65 74 61 78 |>, ferra|ri@netax|
|00002510| 73 2e 63 6f 6d 20 28 44 | 61 72 72 65 6c 6c 20 54 |s.com (D|arrell T|
|00002520| 75 72 6e 65 72 29 20 77 | 72 6f 74 65 3a 0d 0d 3e |urner) w|rote:..>|
|00002530| 20 49 27 6d 20 74 72 79 | 69 6e 67 20 74 6f 20 66 | I'm try|ing to f|
|00002540| 69 67 75 72 65 20 6f 75 | 74 20 68 6f 77 20 74 6f |igure ou|t how to|
|00002550| 20 63 68 65 63 6b 20 69 | 66 20 61 20 64 72 69 76 | check i|f a driv|
|00002560| 65 72 20 69 73 20 6f 70 | 65 6e 20 62 79 20 6f 6e |er is op|en by on|
|00002570| 6c 79 0d 3e 20 73 70 65 | 63 69 66 79 69 6e 67 20 |ly.> spe|cifying |
|00002580| 74 68 65 20 64 72 69 76 | 65 72 20 6e 61 6d 65 2e |the driv|er name.|
|00002590| 20 20 49 20 77 61 6e 74 | 20 69 74 20 74 6f 20 77 | I want| it to w|
|000025a0| 6f 72 6b 20 66 6f 72 20 | 2e 49 50 50 20 2e 41 4f |ork for |.IPP .AO|
|000025b0| 75 74 2c 20 61 6e 64 20 | 6f 74 68 65 72 73 0d 3e |ut, and |others.>|
|000025c0| 20 73 75 63 68 20 61 73 | 20 72 61 6d 20 73 65 72 | such as| ram ser|
|000025d0| 61 69 6c 20 64 72 69 76 | 65 72 73 20 66 6f 72 20 |ail driv|ers for |
|000025e0| 48 75 72 64 6c 65 72 73 | 2c 20 65 74 63 2e 0d 3e |Hurdlers|, etc..>|
|000025f0| 20 0d 3e 20 4d 79 20 70 | 72 6f 62 6c 65 6d 20 69 | .> My p|roblem i|
|00002600| 73 20 74 68 61 74 20 49 | 20 63 61 6e 27 74 20 66 |s that I| can't f|
|00002610| 69 67 75 72 65 20 6f 75 | 74 20 69 66 20 69 74 27 |igure ou|t if it'|
|00002620| 73 20 6f 70 65 6e 20 77 | 69 74 68 6f 75 74 20 66 |s open w|ithout f|
|00002630| 69 72 73 74 20 6b 6e 6f | 77 69 6e 67 0d 3e 20 74 |irst kno|wing.> t|
|00002640| 68 65 20 64 72 69 76 65 | 72 20 75 6e 69 74 20 6e |he drive|r unit n|
|00002650| 75 6d 62 65 72 2e 20 20 | 49 20 77 61 73 20 67 6f |umber. |I was go|
|00002660| 69 6e 67 20 74 6f 20 77 | 61 6c 6b 20 74 68 65 20 |ing to w|alk the |
|00002670| 55 6e 69 74 54 61 62 6c | 65 20 63 68 65 63 6b 69 |UnitTabl|e checki|
|00002680| 6e 67 20 66 6f 72 20 74 | 68 65 0d 3e 20 44 72 69 |ng for t|he.> Dri|
|00002690| 76 65 72 20 4e 61 6d 65 | 20 20 69 6e 20 74 68 65 |ver Name| in the|
|000026a0| 20 44 43 74 6c 45 6e 74 | 72 79 2c 20 62 75 74 20 | DCtlEnt|ry, but |
|000026b0| 49 20 73 6f 6f 6e 20 64 | 69 73 63 6f 76 65 72 65 |I soon d|iscovere|
|000026c0| 64 20 74 68 61 74 20 74 | 68 65 20 6e 61 6d 65 20 |d that t|he name |
|000026d0| 69 73 20 69 6e 0d 3e 20 | 74 68 65 72 65 2e 0d 0d |is in.> |there...|
|000026e0| 59 65 73 20 69 74 20 69 | 73 2e 20 49 74 27 73 20 |Yes it i|s. It's |
|000026f0| 69 6e 20 74 68 65 20 64 | 72 69 76 65 72 20 69 74 |in the d|river it|
|00002700| 73 65 6c 66 2c 20 77 68 | 69 63 68 20 69 73 20 70 |self, wh|ich is p|
|00002710| 6f 69 6e 74 65 64 20 74 | 6f 20 62 79 20 74 68 65 |ointed t|o by the|
|00002720| 20 44 43 74 6c 0d 65 6e | 74 72 79 2e 20 48 65 72 | DCtl.en|try. Her|
|00002730| 65 27 73 20 73 6f 6d 65 | 20 63 6f 64 65 20 28 69 |e's some| code (i|
|00002740| 6e 20 43 3b 20 74 68 65 | 20 63 6f 6e 76 65 72 73 |n C; the| convers|
|00002750| 69 6f 6e 20 74 6f 20 50 | 61 73 63 61 6c 20 69 73 |ion to P|ascal is|
|00002760| 20 70 72 65 74 74 79 20 | 65 61 73 79 29 3a 0d 0d | pretty |easy):..|
|00002770| 2f 2a 20 53 74 72 75 63 | 74 75 72 65 20 6f 66 20 |/* Struc|ture of |
|00002780| 74 68 65 20 64 72 69 76 | 65 72 20 72 65 73 6f 75 |the driv|er resou|
|00002790| 72 63 65 20 2a 2f 0d 74 | 79 70 65 64 65 66 20 73 |rce */.t|ypedef s|
|000027a0| 74 72 75 63 74 20 7b 0d | 20 20 20 20 73 68 6f 72 |truct {.| shor|
|000027b0| 74 20 64 72 76 72 46 6c | 61 67 73 3b 0d 20 20 20 |t drvrFl|ags;. |
|000027c0| 20 73 68 6f 72 74 20 64 | 72 76 72 44 65 6c 61 79 | short d|rvrDelay|
|000027d0| 3b 0d 20 20 20 20 73 68 | 6f 72 74 20 64 72 76 72 |;. sh|ort drvr|
|000027e0| 45 4d 61 73 6b 3b 0d 20 | 20 20 20 73 68 6f 72 74 |EMask;. | short|
|000027f0| 20 64 72 76 72 4d 65 6e | 75 3b 0d 20 20 20 20 73 | drvrMen|u;. s|
|00002800| 68 6f 72 74 20 64 72 76 | 72 4f 70 65 6e 3b 0d 20 |hort drv|rOpen;. |
|00002810| 20 20 20 73 68 6f 72 74 | 20 64 72 76 72 50 72 69 | short| drvrPri|
|00002820| 6d 65 3b 0d 20 20 20 20 | 73 68 6f 72 74 20 64 72 |me;. |short dr|
|00002830| 76 72 43 74 6c 3b 0d 20 | 20 20 20 73 68 6f 72 74 |vrCtl;. | short|
|00002840| 20 64 72 76 72 53 74 61 | 74 75 73 3b 0d 20 20 20 | drvrSta|tus;. |
|00002850| 20 73 68 6f 72 74 20 64 | 72 76 72 43 6c 6f 73 65 | short d|rvrClose|
|00002860| 3b 0d 20 20 20 20 75 6e | 73 69 67 6e 65 64 20 63 |;. un|signed c|
|00002870| 68 61 72 20 64 72 76 72 | 4e 61 6d 65 5b 5d 3b 0d |har drvr|Name[];.|
|00002880| 20 20 20 20 75 6e 73 69 | 67 6e 65 64 20 63 68 61 | unsi|gned cha|
|00002890| 72 20 64 72 76 72 52 6f | 75 74 69 6e 65 73 5b 5d |r drvrRo|utines[]|
|000028a0| 3b 0d 7d 20 44 72 69 76 | 65 72 53 74 72 75 63 74 |;.} Driv|erStruct|
|000028b0| 2c 20 2a 44 72 69 76 65 | 72 50 74 72 2c 20 2a 2a |, *Drive|rPtr, **|
|000028c0| 44 72 69 76 65 72 48 61 | 6e 64 6c 65 3b 0d 0d 23 |DriverHa|ndle;..#|
|000028d0| 69 66 20 64 65 66 69 6e | 65 28 5f 5f 53 59 53 45 |if defin|e(__SYSE|
|000028e0| 51 55 5f 5f 29 0d 23 64 | 65 66 69 6e 65 20 55 54 |QU__).#d|efine UT|
|000028f0| 41 42 4c 45 42 41 53 45 | 20 20 28 2a 20 28 44 43 |ABLEBASE| (* (DC|
|00002900| 74 6c 48 61 6e 64 6c 65 | 20 2a 2a 29 55 54 61 62 |tlHandle| **)UTab|
|00002910| 6c 65 42 61 73 65 29 0d | 23 64 65 66 69 6e 65 20 |leBase).|#define |
|00002920| 55 4e 49 54 4e 54 52 59 | 43 4e 54 20 28 2a 20 28 |UNITNTRY|CNT (* (|
|00002930| 73 68 6f 72 74 20 2a 29 | 55 6e 69 74 4e 74 72 79 |short *)|UnitNtry|
|00002940| 43 6e 74 29 0d 23 65 6c | 69 66 20 64 65 66 69 6e |Cnt).#el|if defin|
|00002950| 65 64 28 5f 5f 4c 4f 57 | 4d 45 4d 5f 5f 29 0d 23 |ed(__LOW|MEM__).#|
|00002960| 64 65 66 69 6e 65 20 55 | 54 41 42 4c 45 42 41 53 |define U|TABLEBAS|
|00002970| 45 20 20 28 44 43 74 6c | 48 61 6e 64 6c 65 20 2a |E (DCtl|Handle *|
|00002980| 29 4c 4d 47 65 74 55 54 | 61 62 6c 65 42 61 73 65 |)LMGetUT|ableBase|
|00002990| 28 29 0d 23 64 65 66 69 | 6e 65 20 55 4e 49 54 4e |().#defi|ne UNITN|
|000029a0| 54 52 59 43 4e 54 20 4c | 4d 47 65 74 55 6e 69 74 |TRYCNT L|MGetUnit|
|000029b0| 4e 74 72 79 43 6e 74 28 | 29 0d 23 65 6c 73 65 0d |NtryCnt(|).#else.|
|000029c0| 23 64 65 66 69 6e 65 20 | 55 54 41 42 4c 45 42 41 |#define |UTABLEBA|
|000029d0| 53 45 20 20 55 54 61 62 | 6c 65 42 61 73 65 0d 23 |SE UTab|leBase.#|
|000029e0| 64 65 66 69 6e 65 20 55 | 4e 49 54 4e 54 52 59 43 |define U|NITNTRYC|
|000029f0| 4e 54 20 55 6e 69 74 4e | 74 72 79 43 6e 74 0d 23 |NT UnitN|tryCnt.#|
|00002a00| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 64 |endif..#|ifndef d|
|00002a10| 4f 70 65 6e 65 64 0d 23 | 20 20 20 64 65 66 69 6e |Opened.#| defin|
|00002a20| 65 20 64 4f 70 65 6e 65 | 64 20 20 20 20 20 20 30 |e dOpene|d 0|
|00002a30| 78 30 30 32 30 0d 23 65 | 6e 64 69 66 20 2f 2a 20 |x0020.#e|ndif /* |
|00002a40| 64 4f 70 65 6e 65 64 20 | 2a 2f 0d 23 69 66 6e 64 |dOpened |*/.#ifnd|
|00002a50| 65 66 20 64 52 41 4d 42 | 61 73 65 64 0d 23 20 20 |ef dRAMB|ased.# |
|00002a60| 20 64 65 66 69 6e 65 20 | 64 52 41 4d 42 61 73 65 | define |dRAMBase|
|00002a70| 64 20 20 20 20 30 78 30 | 30 34 30 0d 23 65 6e 64 |d 0x0|040.#end|
|00002a80| 69 66 20 2f 2a 20 64 52 | 41 4d 42 61 73 65 64 20 |if /* dR|AMBased |
|00002a90| 2a 2f 0d 0d 73 68 6f 72 | 74 20 47 65 74 44 72 76 |*/..shor|t GetDrv|
|00002aa0| 72 52 65 66 4e 75 6d 28 | 53 74 72 69 6e 67 50 74 |rRefNum(|StringPt|
|00002ab0| 72 20 64 72 76 72 4e 61 | 6d 65 29 0d 7b 0d 20 20 |r drvrNa|me).{. |
|00002ac0| 73 68 6f 72 74 20 75 6e | 69 74 4e 75 6d 3b 0d 20 |short un|itNum;. |
|00002ad0| 20 44 43 74 6c 50 74 72 | 20 63 75 72 44 43 74 6c | DCtlPtr| curDCtl|
|00002ae0| 50 74 72 2c 20 2a 63 75 | 72 44 43 74 6c 48 6e 64 |Ptr, *cu|rDCtlHnd|
|00002af0| 6c 2c 20 2a 2a 55 54 61 | 62 6c 65 45 6e 74 72 79 |l, **UTa|bleEntry|
|00002b00| 3b 0d 20 20 44 72 69 76 | 65 72 50 74 72 20 63 75 |;. Driv|erPtr cu|
|00002b10| 72 44 72 76 72 50 74 72 | 3b 0d 20 20 20 20 0d 20 |rDrvrPtr|;. . |
|00002b20| 20 2f 2a 20 57 61 6c 6b | 20 74 68 72 6f 75 67 68 | /* Walk| through|
|00002b30| 20 74 68 65 20 55 6e 69 | 74 20 54 61 62 6c 65 20 | the Uni|t Table |
|00002b40| 2a 2f 0d 20 20 55 54 61 | 62 6c 65 45 6e 74 72 79 |*/. UTa|bleEntry|
|00002b50| 20 3d 20 55 54 41 42 4c | 45 42 41 53 45 3b 0d 20 | = UTABL|EBASE;. |
|00002b60| 20 66 6f 72 28 75 6e 69 | 74 4e 75 6d 20 3d 20 30 | for(uni|tNum = 0|
|00002b70| 3b 20 75 6e 69 74 4e 75 | 6d 20 3c 20 55 4e 49 54 |; unitNu|m < UNIT|
|00002b80| 4e 54 52 59 43 4e 54 3b | 20 2b 2b 75 6e 69 74 4e |NTRYCNT;| ++unitN|
|00002b90| 75 6d 29 20 7b 0d 20 20 | 20 20 69 66 28 28 63 75 |um) {. | if((cu|
|00002ba0| 72 44 43 74 6c 48 6e 64 | 6c 20 3d 20 2a 55 54 61 |rDCtlHnd|l = *UTa|
|00002bb0| 62 6c 65 45 6e 74 72 79 | 2b 2b 29 20 21 3d 20 6e |bleEntry|++) != n|
|00002bc0| 69 6c 29 20 7b 0d 20 20 | 20 20 20 20 20 20 20 20 |il) {. | |
|00002bd0| 20 20 0d 20 20 20 20 20 | 20 63 75 72 44 43 74 6c | . | curDCtl|
|00002be0| 50 74 72 20 3d 20 2a 63 | 75 72 44 43 74 6c 48 6e |Ptr = *c|urDCtlHn|
|00002bf0| 64 6c 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |dl;. | |
|00002c00| 0d 20 20 20 20 20 20 2f | 2a 20 47 65 74 20 74 68 |. /|* Get th|
|00002c10| 65 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |e pointe|r to the|
|00002c20| 20 64 72 69 76 65 72 20 | 2a 2f 0d 20 20 20 20 20 | driver |*/. |
|00002c30| 20 63 75 72 44 72 76 72 | 50 74 72 20 3d 20 28 44 | curDrvr|Ptr = (D|
|00002c40| 72 69 76 65 72 50 74 72 | 29 63 75 72 44 43 74 6c |riverPtr|)curDCtl|
|00002c50| 50 74 72 2d 3e 64 43 74 | 6c 44 72 69 76 65 72 3b |Ptr->dCt|lDriver;|
|00002c60| 0d 0d 20 20 20 20 20 20 | 2f 2a 20 49 66 20 74 68 |.. |/* If th|
|00002c70| 69 73 20 69 73 20 61 20 | 52 41 4d 20 64 72 69 76 |is is a |RAM driv|
|00002c80| 65 72 2c 20 69 74 27 73 | 20 61 20 68 61 6e 64 6c |er, it's| a handl|
|00002c90| 65 2e 20 52 4f 4d 20 69 | 73 20 61 20 70 6f 69 6e |e. ROM i|s a poin|
|00002ca0| 74 65 72 20 2a 2f 0d 20 | 20 20 20 20 20 69 66 28 |ter */. | if(|
|00002cb0| 28 63 75 72 44 43 74 6c | 50 74 72 2d 3e 64 43 74 |(curDCtl|Ptr->dCt|
|00002cc0| 6c 46 6c 61 67 73 20 26 | 20 64 52 41 4d 42 61 73 |lFlags &| dRAMBas|
|00002cd0| 65 64 29 20 26 26 20 28 | 63 75 72 44 72 76 72 50 |ed) && (|curDrvrP|
|00002ce0| 74 72 20 21 3d 20 6e 69 | 6c 29 29 0d 20 20 20 20 |tr != ni|l)). |
|00002cf0| 20 20 20 20 63 75 72 44 | 72 76 72 50 74 72 20 3d | curD|rvrPtr =|
|00002d00| 20 2a 28 44 72 69 76 65 | 72 50 74 72 20 2a 29 63 | *(Drive|rPtr *)c|
|00002d10| 75 72 44 72 76 72 50 74 | 72 3b 0d 20 20 20 20 20 |urDrvrPt|r;. |
|00002d20| 20 20 20 20 20 20 20 0d | 20 20 20 20 20 20 2f 2a | .| /*|
|00002d30| 20 44 6f 65 73 20 74 68 | 65 20 64 72 69 76 65 72 | Does th|e driver|
|00002d40| 20 6e 61 6d 65 20 6d 61 | 74 63 68 3f 20 2a 2f 0d | name ma|tch? */.|
|00002d50| 20 20 20 20 20 20 69 66 | 28 63 75 72 44 72 76 72 | if|(curDrvr|
|00002d60| 50 74 72 20 21 3d 20 6e | 69 6c 29 0d 20 20 20 20 |Ptr != n|il). |
|00002d70| 20 20 20 20 69 66 28 45 | 71 75 61 6c 53 74 72 69 | if(E|qualStri|
|00002d80| 6e 67 28 64 72 76 72 4e | 61 6d 65 2c 20 63 75 72 |ng(drvrN|ame, cur|
|00002d90| 44 72 76 72 50 74 72 2d | 3e 64 72 76 72 4e 61 6d |DrvrPtr-|>drvrNam|
|00002da0| 65 2c 20 66 61 6c 73 65 | 2c 20 74 72 75 65 29 29 |e, false|, true))|
|00002db0| 0d 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |. | retur|
|00002dc0| 6e 28 7e 75 6e 69 74 4e | 75 6d 29 3b 0d 20 20 20 |n(~unitN|um);. |
|00002dd0| 20 7d 0d 20 20 7d 0d 20 | 20 72 65 74 75 72 6e 28 | }. }. | return(|
|00002de0| 30 29 3b 0d 7d 0d 0d 42 | 6f 6f 6c 65 61 6e 20 49 |0);.}..B|oolean I|
|00002df0| 73 44 72 69 76 65 72 4f | 70 65 6e 28 53 74 72 69 |sDriverO|pen(Stri|
|00002e00| 6e 67 50 74 72 20 64 72 | 76 72 4e 61 6d 65 29 0d |ngPtr dr|vrName).|
|00002e10| 7b 0d 20 20 73 68 6f 72 | 74 20 75 6e 69 74 4e 75 |{. shor|t unitNu|
|00002e20| 6d 3b 0d 20 20 44 43 74 | 6c 50 74 72 20 63 75 72 |m;. DCt|lPtr cur|
|00002e30| 44 43 74 6c 50 74 72 2c | 20 2a 63 75 72 44 43 74 |DCtlPtr,| *curDCt|
|00002e40| 6c 48 6e 64 6c 2c 20 2a | 2a 55 54 61 62 6c 65 45 |lHndl, *|*UTableE|
|00002e50| 6e 74 72 79 3b 0d 20 20 | 44 72 69 76 65 72 50 74 |ntry;. |DriverPt|
|00002e60| 72 20 63 75 72 44 72 76 | 72 50 74 72 3b 0d 20 20 |r curDrv|rPtr;. |
|00002e70| 20 20 0d 20 20 2f 2a 20 | 57 61 6c 6b 20 74 68 72 | . /* |Walk thr|
|00002e80| 6f 75 67 68 20 74 68 65 | 20 55 6e 69 74 20 54 61 |ough the| Unit Ta|
|00002e90| 62 6c 65 20 2a 2f 0d 20 | 20 55 54 61 62 6c 65 45 |ble */. | UTableE|
|00002ea0| 6e 74 72 79 20 3d 20 55 | 54 41 42 4c 45 42 41 53 |ntry = U|TABLEBAS|
|00002eb0| 45 3b 0d 20 20 66 6f 72 | 28 75 6e 69 74 4e 75 6d |E;. for|(unitNum|
|00002ec0| 20 3d 20 30 3b 20 75 6e | 69 74 4e 75 6d 20 3c 20 | = 0; un|itNum < |
|00002ed0| 55 4e 49 54 4e 54 52 59 | 43 4e 54 3b 20 2b 2b 75 |UNITNTRY|CNT; ++u|
|00002ee0| 6e 69 74 4e 75 6d 29 20 | 7b 0d 20 20 20 20 69 66 |nitNum) |{. if|
|00002ef0| 28 28 63 75 72 44 43 74 | 6c 48 6e 64 6c 20 3d 20 |((curDCt|lHndl = |
|00002f00| 2a 55 54 61 62 6c 65 45 | 6e 74 72 79 2b 2b 29 20 |*UTableE|ntry++) |
|00002f10| 21 3d 20 6e 69 6c 29 20 | 7b 0d 20 20 20 20 20 20 |!= nil) |{. |
|00002f20| 20 20 20 20 20 20 0d 20 | 20 20 20 20 20 63 75 72 | . | cur|
|00002f30| 44 43 74 6c 50 74 72 20 | 3d 20 2a 63 75 72 44 43 |DCtlPtr |= *curDC|
|00002f40| 74 6c 48 6e 64 6c 3b 0d | 20 20 20 20 20 20 20 20 |tlHndl;.| |
|00002f50| 20 20 20 20 0d 20 20 20 | 20 20 20 2f 2a 20 47 65 | . | /* Ge|
|00002f60| 74 20 74 68 65 20 70 6f | 69 6e 74 65 72 20 74 6f |t the po|inter to|
|00002f70| 20 74 68 65 20 64 72 69 | 76 65 72 20 2a 2f 0d 20 | the dri|ver */. |
|00002f80| 20 20 20 20 20 63 75 72 | 44 72 76 72 50 74 72 20 | cur|DrvrPtr |
|00002f90| 3d 20 28 44 72 69 76 65 | 72 50 74 72 29 63 75 72 |= (Drive|rPtr)cur|
|00002fa0| 44 43 74 6c 50 74 72 2d | 3e 64 43 74 6c 44 72 69 |DCtlPtr-|>dCtlDri|
|00002fb0| 76 65 72 3b 0d 0d 20 20 | 20 20 20 20 2f 2a 20 49 |ver;.. | /* I|
|00002fc0| 66 20 74 68 69 73 20 69 | 73 20 61 20 52 41 4d 20 |f this i|s a RAM |
|00002fd0| 64 72 69 76 65 72 2c 20 | 69 74 27 73 20 61 20 68 |driver, |it's a h|
|00002fe0| 61 6e 64 6c 65 2e 20 52 | 4f 4d 20 69 73 20 61 20 |andle. R|OM is a |
|00002ff0| 70 6f 69 6e 74 65 72 20 | 2a 2f 0d 20 20 20 20 20 |pointer |*/. |
|00003000| 20 69 66 28 28 63 75 72 | 44 43 74 6c 50 74 72 2d | if((cur|DCtlPtr-|
|00003010| 3e 64 43 74 6c 46 6c 61 | 67 73 20 26 20 64 52 41 |>dCtlFla|gs & dRA|
|00003020| 4d 42 61 73 65 64 29 20 | 26 26 20 28 63 75 72 44 |MBased) |&& (curD|
|00003030| 72 76 72 50 74 72 20 21 | 3d 20 6e 69 6c 29 29 0d |rvrPtr !|= nil)).|
|00003040| 20 20 20 20 20 20 20 20 | 63 75 72 44 72 76 72 50 | |curDrvrP|
|00003050| 74 72 20 3d 20 2a 28 44 | 72 69 76 65 72 50 74 72 |tr = *(D|riverPtr|
|00003060| 20 2a 29 63 75 72 44 72 | 76 72 50 74 72 3b 0d 20 | *)curDr|vrPtr;. |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 0d 20 20 20 20 | | . |
|00003080| 20 20 2f 2a 20 44 6f 65 | 73 20 74 68 65 20 64 72 | /* Doe|s the dr|
|00003090| 69 76 65 72 20 6e 61 6d | 65 20 6d 61 74 63 68 3f |iver nam|e match?|
|000030a0| 20 2a 2f 0d 20 20 20 20 | 20 20 69 66 28 63 75 72 | */. | if(cur|
|000030b0| 44 72 76 72 50 74 72 20 | 21 3d 20 6e 69 6c 29 0d |DrvrPtr |!= nil).|
|000030c0| 20 20 20 20 20 20 20 20 | 69 66 28 45 71 75 61 6c | |if(Equal|
|000030d0| 53 74 72 69 6e 67 28 64 | 72 76 72 4e 61 6d 65 2c |String(d|rvrName,|
|000030e0| 20 63 75 72 44 72 76 72 | 50 74 72 2d 3e 64 72 76 | curDrvr|Ptr->drv|
|000030f0| 72 4e 61 6d 65 2c 20 66 | 61 6c 73 65 2c 20 74 72 |rName, f|alse, tr|
|00003100| 75 65 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 72 |ue)). | r|
|00003110| 65 74 75 72 6e 28 28 63 | 75 72 44 43 74 6c 50 74 |eturn((c|urDCtlPt|
|00003120| 72 2d 3e 64 43 74 6c 46 | 6c 61 67 73 20 26 20 64 |r->dCtlF|lags & d|
|00003130| 4f 70 65 6e 65 64 29 20 | 21 3d 20 30 29 3b 0d 20 |Opened) |!= 0);. |
|00003140| 20 20 20 7d 0d 20 20 7d | 0d 20 20 72 65 74 75 72 | }. }|. retur|
|00003150| 6e 28 66 61 6c 73 65 29 | 3b 0d 7d 0d 0d 4e 6f 74 |n(false)|;.}..Not|
|00003160| 65 3a 20 54 68 65 72 65 | 20 69 73 20 61 6e 20 6f |e: There| is an o|
|00003170| 6d 69 73 73 69 6f 6e 20 | 69 6e 20 74 68 65 20 55 |mission |in the U|
|00003180| 6e 69 76 65 72 73 61 6c | 20 68 65 61 64 65 72 73 |niversal| headers|
|00003190| 20 4c 6f 77 4d 65 6d 2e | 68 20 62 65 63 61 75 73 | LowMem.|h becaus|
|000031a0| 65 20 69 74 0d 64 6f 65 | 73 20 6e 6f 74 20 64 65 |e it.doe|s not de|
|000031b0| 66 69 6e 65 20 4c 4d 47 | 65 74 55 6e 69 74 4e 74 |fine LMG|etUnitNt|
|000031c0| 72 79 43 6e 74 20 6f 72 | 20 4c 4d 53 65 74 55 6e |ryCnt or| LMSetUn|
|000031d0| 69 74 4e 74 72 79 43 6e | 74 2e 20 46 6f 72 20 74 |itNtryCn|t. For t|
|000031e0| 68 65 20 36 38 30 30 30 | 0d 76 65 72 73 69 6f 6e |he 68000|.version|
|000031f0| 73 2c 20 61 64 64 3a 0d | 0d 23 64 65 66 69 6e 65 |s, add:.|.#define|
|00003200| 20 4c 4d 47 65 74 55 6e | 69 74 4e 74 72 79 43 6e | LMGetUn|itNtryCn|
|00003210| 74 28 29 20 28 2a 20 28 | 73 68 6f 72 74 20 2a 29 |t() (* (|short *)|
|00003220| 20 30 78 30 31 44 32 29 | 0d 0d 23 64 65 66 69 6e | 0x01D2)|..#defin|
|00003230| 65 20 4c 4d 53 65 74 55 | 6e 69 74 4e 74 72 79 43 |e LMSetU|nitNtryC|
|00003240| 6e 74 28 55 6e 69 74 4e | 74 72 79 43 6e 74 56 61 |nt(UnitN|tryCntVa|
|00003250| 6c 75 65 29 20 28 28 2a | 20 28 73 68 6f 72 74 20 |lue) ((*| (short |
|00003260| 2a 29 20 30 78 30 31 44 | 32 29 20 3d 20 28 55 6e |*) 0x01D|2) = (Un|
|00003270| 69 74 4e 74 72 79 43 6e | 74 56 61 6c 75 65 29 29 |itNtryCn|tValue))|
|00003280| 0d 0d 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 20 77 |..I don'|t know w|
|00003290| 68 61 74 20 74 6f 20 64 | 6f 20 61 62 6f 75 74 20 |hat to d|o about |
|000032a0| 74 68 65 20 50 6f 77 65 | 72 50 43 20 76 65 72 73 |the Powe|rPC vers|
|000032b0| 69 6f 6e 73 2e 0d 0d 70 | 72 0d 2d 2d 20 0d 50 65 |ions...p|r.-- .Pe|
|000032c0| 74 65 20 52 65 73 6e 69 | 63 6b 20 20 20 20 28 2e |te Resni|ck (.|
|000032d0| 2e 2e 73 6f 20 77 68 61 | 74 20 69 73 20 61 20 6d |..so wha|t is a m|
|000032e0| 6f 6a 6f 2c 20 61 6e 64 | 20 77 68 79 20 77 6f 75 |ojo, and| why wou|
|000032f0| 6c 64 20 6f 6e 65 20 62 | 65 20 72 69 73 69 6e 67 |ld one b|e rising|
|00003300| 3f 29 0d 44 6f 63 74 6f | 72 61 6c 20 53 74 75 64 |?).Docto|ral Stud|
|00003310| 65 6e 74 20 2d 20 50 68 | 69 6c 6f 73 6f 70 68 79 |ent - Ph|ilosophy|
|00003320| 20 44 65 70 61 72 74 6d | 65 6e 74 2c 20 47 72 65 | Departm|ent, Gre|
|00003330| 67 6f 72 79 20 48 61 6c | 6c 2c 20 55 49 55 43 0d |gory Hal|l, UIUC.|
|00003340| 53 79 73 74 65 6d 20 6d | 61 6e 61 67 65 72 20 2d |System m|anager -|
|00003350| 20 43 6f 67 6e 69 74 69 | 76 65 20 53 63 69 65 6e | Cogniti|ve Scien|
|00003360| 63 65 20 47 72 6f 75 70 | 2c 20 42 65 63 6b 6d 61 |ce Group|, Beckma|
|00003370| 6e 20 49 6e 73 74 69 74 | 75 74 65 2c 20 55 49 55 |n Instit|ute, UIU|
|00003380| 43 0d 49 6e 74 65 72 6e | 65 74 3a 20 72 65 73 6e |C.Intern|et: resn|
|00003390| 69 63 6b 40 75 69 75 63 | 2e 65 64 75 0d 0d 2b 2b |ick@uiuc|.edu..++|
|000033a0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000033b0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 0d 0d 3e 46 72 6f 6d |++++++++|+..>From|
|000033c0| 20 63 73 75 6c 65 79 40 | 6e 65 74 63 6f 6d 2e 63 | csuley@|netcom.c|
|000033d0| 6f 6d 20 28 43 68 72 69 | 73 74 6f 70 68 65 72 20 |om (Chri|stopher |
|000033e0| 53 2e 20 53 75 6c 65 79 | 29 0d 44 61 74 65 3a 20 |S. Suley|).Date: |
|000033f0| 53 61 74 2c 20 32 34 20 | 53 65 70 20 31 39 39 34 |Sat, 24 |Sep 1994|
|00003400| 20 30 35 3a 35 38 3a 31 | 32 20 47 4d 54 0d 4f 72 | 05:58:1|2 GMT.Or|
|00003410| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 4e 45 54 43 |ganizati|on: NETC|
|00003420| 4f 4d 20 4f 6e 2d 6c 69 | 6e 65 20 43 6f 6d 6d 75 |OM On-li|ne Commu|
|00003430| 6e 69 63 61 74 69 6f 6e | 20 53 65 72 76 69 63 65 |nication| Service|
|00003440| 73 20 28 34 30 38 20 32 | 36 31 2d 34 37 30 30 20 |s (408 2|61-4700 |
|00003450| 67 75 65 73 74 29 0d 0d | 0d 48 65 72 65 27 73 20 |guest)..|.Here's |
|00003460| 73 6f 6d 65 20 63 6f 64 | 65 20 49 20 75 73 65 20 |some cod|e I use |
|00003470| 74 6f 20 66 69 6e 64 20 | 61 20 64 72 69 76 65 72 |to find |a driver|
|00003480| 20 69 6e 20 74 68 65 20 | 75 6e 69 74 20 74 61 62 | in the |unit tab|
|00003490| 6c 65 2e 0d 49 74 27 73 | 20 6c 69 67 68 74 6c 79 |le..It's| lightly|
|000034a0| 20 61 64 61 70 74 65 64 | 20 66 72 6f 6d 20 50 65 | adapted| from Pe|
|000034b0| 74 65 20 52 65 73 6e 69 | 63 6b 27 73 20 65 78 63 |te Resni|ck's exc|
|000034c0| 65 6c 6c 65 6e 74 20 44 | 72 69 76 65 72 20 32 2e |ellent D|river 2.|
|000034d0| 32 2c 0d 61 76 61 69 6c | 61 62 6c 65 20 61 74 20 |2,.avail|able at |
|000034e0| 73 75 6d 65 78 20 61 6e | 64 20 75 6d 69 63 68 20 |sumex an|d umich |
|000034f0| 61 6e 64 20 6d 69 72 72 | 6f 72 73 20 74 68 65 72 |and mirr|ors ther|
|00003500| 65 6f 66 2e 0d 49 74 27 | 73 20 69 6e 20 43 2c 20 |eof..It'|s in C, |
|00003510| 62 75 74 20 74 68 65 20 | 74 72 61 6e 73 6c 61 74 |but the |translat|
|00003520| 69 6f 6e 20 74 6f 20 50 | 61 73 63 61 6c 20 73 68 |ion to P|ascal sh|
|00003530| 6f 75 6c 64 20 62 65 20 | 70 72 65 74 74 79 20 65 |ould be |pretty e|
|00003540| 61 73 79 2e 0d 0d 0d 74 | 79 70 65 64 65 66 20 73 |asy....t|ypedef s|
|00003550| 74 72 75 63 74 0d 7b 0d | 20 20 73 68 6f 72 74 20 |truct.{.| short |
|00003560| 64 72 76 72 46 6c 61 67 | 73 3b 0d 20 20 73 68 6f |drvrFlag|s;. sho|
|00003570| 72 74 20 64 72 76 72 44 | 65 6c 61 79 3b 0d 20 20 |rt drvrD|elay;. |
|00003580| 73 68 6f 72 74 20 64 72 | 76 72 45 4d 61 73 6b 3b |short dr|vrEMask;|
|00003590| 0d 20 20 73 68 6f 72 74 | 20 64 72 76 72 4d 65 6e |. short| drvrMen|
|000035a0| 75 3b 0d 20 20 73 68 6f | 72 74 20 64 72 76 72 4f |u;. sho|rt drvrO|
|000035b0| 70 65 6e 3b 0d 20 20 73 | 68 6f 72 74 20 64 72 76 |pen;. s|hort drv|
|000035c0| 72 50 72 69 6d 65 3b 0d | 20 20 73 68 6f 72 74 20 |rPrime;.| short |
|000035d0| 64 72 76 72 43 74 6c 3b | 0d 20 20 73 68 6f 72 74 |drvrCtl;|. short|
|000035e0| 20 64 72 76 72 53 74 61 | 74 75 73 3b 0d 20 20 73 | drvrSta|tus;. s|
|000035f0| 68 6f 72 74 20 64 72 76 | 72 43 6c 6f 73 65 3b 0d |hort drv|rClose;.|
|00003600| 20 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 | unsign|ed char |
|00003610| 64 72 76 72 4e 61 6d 65 | 5b 31 5d 3b 20 2f 2a 20 |drvrName|[1]; /* |
|00003620| 61 63 74 75 61 6c 6c 79 | 20 76 61 72 69 61 62 6c |actually| variabl|
|00003630| 65 20 6c 65 6e 67 74 68 | 20 70 2d 73 74 72 69 6e |e length| p-strin|
|00003640| 67 20 2a 2f 0d 7d 0d 44 | 72 69 76 65 72 53 74 72 |g */.}.D|riverStr|
|00003650| 75 63 74 2c 20 2a 44 72 | 69 76 65 72 50 74 72 3b |uct, *Dr|iverPtr;|
|00003660| 0d 0d 73 68 6f 72 74 0d | 46 69 6e 64 44 72 69 76 |..short.|FindDriv|
|00003670| 65 72 28 20 76 6f 69 64 | 20 29 0d 7b 0d 20 20 53 |er( void| ).{. S|
|00003680| 74 72 32 35 35 20 20 20 | 20 20 20 64 72 76 72 4e |tr255 | drvrN|
|00003690| 61 6d 65 3b 0d 20 20 44 | 43 74 6c 48 61 6e 64 6c |ame;. D|CtlHandl|
|000036a0| 65 20 20 68 43 75 72 44 | 43 45 3b 0d 20 20 44 72 |e hCurD|CE;. Dr|
|000036b0| 69 76 65 72 50 74 72 20 | 20 20 70 43 75 72 44 72 |iverPtr | pCurDr|
|000036c0| 76 72 3b 0d 20 20 73 68 | 6f 72 74 20 20 20 20 20 |vr;. sh|ort |
|000036d0| 20 20 73 44 72 76 72 4e | 75 6d 3b 0d 0d 20 20 47 | sDrvrN|um;.. G|
|000036e0| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 20 64 72 76 |etIndStr|ing( drv|
|000036f0| 72 4e 61 6d 65 2c 20 6b | 72 4d 69 73 63 53 74 72 |rName, k|rMiscStr|
|00003700| 69 6e 67 73 2c 20 6b 73 | 69 44 72 69 76 65 72 4e |ings, ks|iDriverN|
|00003710| 61 6d 65 49 6e 64 65 78 | 20 29 3b 0d 0d 20 20 66 |ameIndex| );.. f|
|00003720| 6f 72 20 28 20 73 44 72 | 76 72 4e 75 6d 20 3d 20 |or ( sDr|vrNum = |
|00003730| 4c 4d 47 65 74 55 6e 69 | 74 4e 74 72 79 43 6e 74 |LMGetUni|tNtryCnt|
|00003740| 28 29 20 3b 20 73 44 72 | 76 72 4e 75 6d 20 3e 3d |() ; sDr|vrNum >=|
|00003750| 20 30 20 3b 20 2d 2d 73 | 44 72 76 72 4e 75 6d 20 | 0 ; --s|DrvrNum |
|00003760| 29 0d 20 20 7b 0d 20 20 | 20 20 68 43 75 72 44 43 |). {. | hCurDC|
|00003770| 45 20 3d 20 47 65 74 44 | 43 74 6c 45 6e 74 72 79 |E = GetD|CtlEntry|
|00003780| 28 20 7e 73 44 72 76 72 | 4e 75 6d 20 29 3b 0d 20 |( ~sDrvr|Num );. |
|00003790| 20 20 20 69 66 20 28 20 | 68 43 75 72 44 43 45 20 | if ( |hCurDCE |
|000037a0| 29 0d 20 20 20 20 7b 0d | 20 20 20 20 20 20 70 43 |). {.| pC|
|000037b0| 75 72 44 72 76 72 20 3d | 20 28 20 44 72 69 76 65 |urDrvr =| ( Drive|
|000037c0| 72 50 74 72 20 29 20 28 | 2a 2a 68 43 75 72 44 43 |rPtr ) (|**hCurDC|
|000037d0| 45 29 2e 64 43 74 6c 44 | 72 69 76 65 72 3b 0d 0d |E).dCtlD|river;..|
|000037e0| 20 20 20 20 20 20 69 66 | 20 28 20 28 28 2a 2a 68 | if| ( ((**h|
|000037f0| 43 75 72 44 43 45 29 2e | 64 43 74 6c 46 6c 61 67 |CurDCE).|dCtlFlag|
|00003800| 73 20 26 20 64 52 41 4d | 42 61 73 65 64 29 20 26 |s & dRAM|Based) &|
|00003810| 26 20 70 43 75 72 44 72 | 76 72 20 29 0d 20 20 20 |& pCurDr|vr ). |
|00003820| 20 20 20 7b 0d 20 20 20 | 20 20 20 20 20 70 43 75 | {. | pCu|
|00003830| 72 44 72 76 72 20 3d 20 | 2a 28 20 44 72 69 76 65 |rDrvr = |*( Drive|
|00003840| 72 50 74 72 20 2a 20 29 | 20 70 43 75 72 44 72 76 |rPtr * )| pCurDrv|
|00003850| 72 3b 0d 20 20 20 20 20 | 20 7d 0d 0d 20 20 20 20 |r;. | }.. |
|00003860| 20 20 69 66 20 28 20 70 | 43 75 72 44 72 76 72 20 | if ( p|CurDrvr |
|00003870| 26 26 0d 20 20 20 20 20 | 20 20 20 20 20 20 45 71 |&&. | Eq|
|00003880| 75 61 6c 53 74 72 69 6e | 67 28 20 64 72 76 72 4e |ualStrin|g( drvrN|
|00003890| 61 6d 65 2c 20 70 43 75 | 72 44 72 76 72 2d 3e 64 |ame, pCu|rDrvr->d|
|000038a0| 72 76 72 4e 61 6d 65 2c | 20 66 61 6c 73 65 2c 20 |rvrName,| false, |
|000038b0| 74 72 75 65 20 29 20 29 | 0d 20 20 20 20 20 20 7b |true ) )|. {|
|000038c0| 0d 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|000038d0| 7e 73 44 72 76 72 4e 75 | 6d 3b 0d 20 20 20 20 20 |~sDrvrNu|m;. |
|000038e0| 20 7d 0d 20 20 20 20 7d | 0d 20 20 7d 0d 0d 20 20 | }. }|. }.. |
|000038f0| 72 65 74 75 72 6e 20 30 | 3b 0d 7d 0d 0d 0d 2d 2d |return 0|;.}...--|
|00003900| 20 0d 57 61 6e 74 20 73 | 6f 6d 65 3f 20 3c 73 6c | .Want s|ome? <sl|
|00003910| 61 70 2c 20 74 68 75 64 | 3e 20 20 20 20 20 20 20 |ap, thud|> |
|00003920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003940| 63 73 75 6c 65 79 40 6e | 65 74 63 6f 6d 2e 63 6f |csuley@n|etcom.co|
|00003950| 6d 0d 57 61 6e 74 20 73 | 6f 6d 65 3f 20 3c 73 6c |m.Want s|ome? <sl|
|00003960| 61 70 2c 20 74 68 75 64 | 3e 20 20 20 20 20 20 20 |ap, thud|> |
|00003970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003980| 20 20 20 20 20 20 43 68 | 72 69 73 53 75 6c 65 79 | Ch|risSuley|
|00003990| 40 7b 65 77 6f 72 6c 64 | 2c 61 6f 6c 7d 2e 63 6f |@{eworld|,aol}.co|
|000039a0| 6d 0d 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |m..-----|--------|
|000039b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |--------|------..|
|000039c0| 3e 46 72 6f 6d 20 61 6c | 74 69 74 75 64 65 40 75 |>From al|titude@u|
|000039d0| 6d 69 63 68 2e 65 64 75 | 20 28 41 6c 65 78 20 54 |mich.edu| (Alex T|
|000039e0| 61 6e 67 29 0d 53 75 62 | 6a 65 63 74 3a 20 49 73 |ang).Sub|ject: Is|
|000039f0| 20 69 74 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 | it poss|ible to |
|00003a00| 6e 6f 74 69 66 79 20 61 | 6e 6f 74 68 65 72 20 6d |notify a|nother m|
|00003a10| 61 63 3f 0d 44 61 74 65 | 3a 20 32 33 20 53 65 70 |ac?.Date|: 23 Sep|
|00003a20| 20 31 39 39 34 20 32 31 | 3a 30 39 3a 35 31 20 47 | 1994 21|:09:51 G|
|00003a30| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00003a40| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 4d | Univers|ity of M|
|00003a50| 69 63 68 69 67 61 6e 0d | 0d 48 69 20 66 6f 6c 6b |ichigan.|.Hi folk|
|00003a60| 73 2e 20 20 0d 0d 49 20 | 77 61 73 20 77 6f 6e 64 |s. ..I |was wond|
|00003a70| 65 72 69 6e 67 20 69 66 | 20 69 74 20 77 61 73 20 |ering if| it was |
|00003a80| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 70 75 6c 6c |possible| to pull|
|00003a90| 20 75 70 20 61 20 64 69 | 61 6c 6f 67 20 62 6f 78 | up a di|alog box|
|00003aa0| 20 6f 72 20 61 6c 65 72 | 74 20 62 6f 78 20 6f 6e | or aler|t box on|
|00003ab0| 0d 61 6e 6f 74 68 65 72 | 20 6d 61 63 20 76 69 61 |.another| mac via|
|00003ac0| 20 65 69 74 68 65 72 20 | 41 70 70 6c 65 54 61 6c | either |AppleTal|
|00003ad0| 6b 20 6f 72 20 49 50 2e | 20 20 0d 0d 4d 65 20 27 |k or IP.| ..Me '|
|00003ae0| 6e 20 73 6f 6d 65 20 66 | 72 69 65 6e 64 73 20 77 |n some f|riends w|
|00003af0| 61 6e 74 20 74 6f 20 77 | 72 69 74 65 20 61 6e 20 |ant to w|rite an |
|00003b00| 61 70 70 20 74 68 61 74 | 20 77 69 6c 6c 20 28 69 |app that| will (i|
|00003b10| 6e 20 69 74 27 73 20 6d | 6f 73 74 20 73 69 6d 70 |n it's m|ost simp|
|00003b20| 6c 65 0d 69 6e 63 61 72 | 6e 61 74 69 6f 6e 29 20 |le.incar|nation) |
|00003b30| 6f 70 65 6e 20 75 70 20 | 61 6e 20 61 6c 65 72 74 |open up |an alert|
|00003b40| 20 62 6f 78 20 6f 6e 20 | 61 6e 6f 74 68 65 72 20 | box on |another |
|00003b50| 6d 61 63 20 61 6e 64 20 | 67 69 76 65 20 74 68 65 |mac and |give the|
|00003b60| 6d 20 61 20 70 69 65 63 | 65 20 6f 66 0d 69 6e 66 |m a piec|e of.inf|
|00003b70| 6f 72 6d 61 74 69 6f 6e | 2e 20 20 0d 0d 49 6e 20 |ormation|. ..In |
|00003b80| 69 74 27 73 20 6d 6f 73 | 74 20 63 6f 6d 70 6c 69 |it's mos|t compli|
|00003b90| 63 61 74 65 64 20 69 6e | 63 61 72 6e 61 74 69 6f |cated in|carnatio|
|00003ba0| 6e 2c 20 77 65 20 77 6f | 75 6c 64 20 72 65 61 6c |n, we wo|uld real|
|00003bb0| 6c 79 20 6c 69 6b 65 20 | 74 6f 20 62 65 20 61 62 |ly like |to be ab|
|00003bc0| 6c 65 20 74 6f 0d 68 61 | 76 65 20 6f 6e 65 20 6d |le to.ha|ve one m|
|00003bd0| 61 63 20 63 6f 6e 74 61 | 63 74 20 74 68 65 20 6e |ac conta|ct the n|
|00003be0| 6f 74 69 66 69 63 61 74 | 69 6f 6e 20 6d 61 6e 61 |otificat|ion mana|
|00003bf0| 67 65 72 20 6f 6e 20 61 | 6e 6f 74 68 65 72 20 6d |ger on a|nother m|
|00003c00| 61 63 2c 20 61 6e 64 20 | 72 75 6e 20 61 0d 70 72 |ac, and |run a.pr|
|00003c10| 6f 67 72 61 6d 20 6f 6e | 20 74 68 61 74 20 6d 61 |ogram on| that ma|
|00003c20| 63 2e 0d 0d 54 68 69 73 | 20 69 73 20 61 6c 6c 20 |c...This| is all |
|00003c30| 70 72 65 73 75 6d 69 6e | 67 20 77 65 20 6b 6e 6f |presumin|g we kno|
|00003c40| 77 20 74 68 65 20 41 70 | 70 6c 65 54 61 6c 6b 20 |w the Ap|pleTalk |
|00003c50| 6e 6f 64 65 20 6f 72 20 | 49 50 20 61 64 64 72 65 |node or |IP addre|
|00003c60| 73 73 20 6f 66 20 74 68 | 65 0d 73 65 6e 64 69 6e |ss of th|e.sendin|
|00003c70| 67 20 61 6e 64 20 72 65 | 63 65 69 76 69 6e 67 20 |g and re|ceiving |
|00003c80| 6d 61 63 2e 0d 0d 54 68 | 61 6e 78 0d 2e 2e 2e 61 |mac...Th|anx....a|
|00003c90| 6c 65 78 2e 2e 2e 0d 0d | 0d 2d 2d 0d 20 20 20 20 |lex.....|.--. |
|00003ca0| 41 6c 65 78 20 54 61 6e | 67 20 20 20 20 20 20 7c |Alex Tan|g ||
|00003cb0| 20 20 20 20 20 55 4d 2d | 53 4e 52 45 20 20 20 7c | UM-|SNRE ||
|00003cc0| 20 20 20 20 20 20 20 55 | 4d 2d 49 54 44 2f 55 53 | U|M-ITD/US|
|00003cd0| 20 43 6f 6e 73 75 6c 74 | 61 6e 74 20 49 49 0d 41 | Consult|ant II.A|
|00003ce0| 4c 54 49 54 55 44 45 40 | 55 4d 49 43 48 2e 45 44 |LTITUDE@|UMICH.ED|
|00003cf0| 55 20 7c 20 20 20 20 20 | 53 74 75 64 65 6e 74 20 |U | |Student |
|00003d00| 20 20 7c 20 20 20 20 55 | 4d 2d 53 4e 52 45 2d 4e | | U|M-SNRE-N|
|00003d10| 43 45 45 54 3a 20 53 79 | 73 74 65 6d 73 20 41 64 |CEET: Sy|stems Ad|
|00003d20| 6d 69 6e 0d 20 20 50 47 | 50 20 76 69 61 20 66 69 |min. PG|P via fi|
|00003d30| 6e 67 65 72 2e 20 20 7c | 20 53 79 73 74 65 6d 73 |nger. || Systems|
|00003d40| 20 41 64 6d 69 6e 20 7c | 68 74 74 70 3a 2f 2f 77 | Admin ||http://w|
|00003d50| 77 77 2e 73 6e 72 65 2e | 75 6d 69 63 68 2e 65 64 |ww.snre.|umich.ed|
|00003d60| 75 2f 75 73 65 72 73 2f | 61 6c 74 69 74 75 64 65 |u/users/|altitude|
|00003d70| 0d 54 68 69 73 20 73 70 | 61 63 65 20 66 6f 72 20 |.This sp|ace for |
|00003d80| 72 65 6e 74 7c 43 6f 6d | 70 2e 43 6f 6e 73 75 74 |rent|Com|p.Consut|
|00003d90| 20 49 49 49 7c 20 41 6e | 20 65 79 65 20 66 6f 72 | III| An| eye for|
|00003da0| 20 61 6e 20 65 79 65 20 | 6c 65 61 76 65 73 20 65 | an eye |leaves e|
|00003db0| 76 65 72 79 6f 6e 65 20 | 62 6c 69 6e 64 2e 0d 0d |veryone |blind...|
|00003dc0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003dd0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00003de0| 6f 6d 20 6e 69 63 6b 2b | 40 70 69 74 74 2e 65 64 |om nick+|@pitt.ed|
|00003df0| 75 20 28 20 6e 69 63 6b | 2e 63 20 29 0d 44 61 74 |u ( nick|.c ).Dat|
|00003e00| 65 3a 20 46 72 69 2c 20 | 32 33 20 53 65 70 20 39 |e: Fri, |23 Sep 9|
|00003e10| 34 20 32 30 3a 34 32 3a | 32 30 20 47 4d 54 0d 4f |4 20:42:|20 GMT.O|
|00003e20| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 54 68 65 |rganizat|ion: The|
|00003e30| 20 50 69 74 74 2c 20 43 | 68 65 6d 69 73 74 72 79 | Pitt, C|hemistry|
|00003e40| 0d 0d 49 6e 20 41 72 74 | 69 63 6c 65 20 3c 33 35 |..In Art|icle <35|
|00003e50| 76 67 37 30 24 37 76 36 | 40 6c 61 73 74 61 63 74 |vg70$7v6|@lastact|
|00003e60| 69 6f 6e 68 65 72 6f 2e | 72 73 2e 69 74 64 2e 75 |ionhero.|rs.itd.u|
|00003e70| 6d 69 63 68 2e 65 64 75 | 3e 2c 20 61 6c 74 69 74 |mich.edu|>, altit|
|00003e80| 75 64 65 40 75 6d 69 63 | 68 2e 65 64 75 0d 28 41 |ude@umic|h.edu.(A|
|00003e90| 6c 65 78 20 54 61 6e 67 | 29 20 77 72 6f 74 65 3a |lex Tang|) wrote:|
|00003ea0| 0d 0d 3e 49 20 77 61 73 | 20 77 6f 6e 64 65 72 69 |..>I was| wonderi|
|00003eb0| 6e 67 20 69 66 20 69 74 | 20 77 61 73 20 70 6f 73 |ng if it| was pos|
|00003ec0| 73 69 62 6c 65 20 74 6f | 20 70 75 6c 6c 20 75 70 |sible to| pull up|
|00003ed0| 20 61 20 64 69 61 6c 6f | 67 20 62 6f 78 20 6f 72 | a dialo|g box or|
|00003ee0| 20 61 6c 65 72 74 20 62 | 6f 78 20 6f 6e 0d 3e 61 | alert b|ox on.>a|
|00003ef0| 6e 6f 74 68 65 72 20 6d | 61 63 20 76 69 61 20 65 |nother m|ac via e|
|00003f00| 69 74 68 65 72 20 41 70 | 70 6c 65 54 61 6c 6b 20 |ither Ap|pleTalk |
|00003f10| 6f 72 20 49 50 2e 20 20 | 0d 3e 0d 3e 4d 65 20 27 |or IP. |.>.>Me '|
|00003f20| 6e 20 73 6f 6d 65 20 66 | 72 69 65 6e 64 73 20 77 |n some f|riends w|
|00003f30| 61 6e 74 20 74 6f 20 77 | 72 69 74 65 20 61 6e 20 |ant to w|rite an |
|00003f40| 61 70 70 20 74 68 61 74 | 20 77 69 6c 6c 20 28 69 |app that| will (i|
|00003f50| 6e 20 69 74 27 73 20 6d | 6f 73 74 20 73 69 6d 70 |n it's m|ost simp|
|00003f60| 6c 65 0d 3e 69 6e 63 61 | 72 6e 61 74 69 6f 6e 29 |le.>inca|rnation)|
|00003f70| 20 6f 70 65 6e 20 75 70 | 20 61 6e 20 61 6c 65 72 | open up| an aler|
|00003f80| 74 20 62 6f 78 20 6f 6e | 20 61 6e 6f 74 68 65 72 |t box on| another|
|00003f90| 20 6d 61 63 20 61 6e 64 | 20 67 69 76 65 20 74 68 | mac and| give th|
|00003fa0| 65 6d 20 61 20 70 69 65 | 63 65 20 6f 66 0d 3e 69 |em a pie|ce of.>i|
|00003fb0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 20 20 0d 3e 0d |nformati|on. .>.|
|00003fc0| 3e 49 6e 20 69 74 27 73 | 20 6d 6f 73 74 20 63 6f |>In it's| most co|
|00003fd0| 6d 70 6c 69 63 61 74 65 | 64 20 69 6e 63 61 72 6e |mplicate|d incarn|
|00003fe0| 61 74 69 6f 6e 2c 20 77 | 65 20 77 6f 75 6c 64 20 |ation, w|e would |
|00003ff0| 72 65 61 6c 6c 79 20 6c | 69 6b 65 20 74 6f 20 62 |really l|ike to b|
|00004000| 65 20 61 62 6c 65 20 74 | 6f 0d 3e 68 61 76 65 20 |e able t|o.>have |
|00004010| 6f 6e 65 20 6d 61 63 20 | 63 6f 6e 74 61 63 74 20 |one mac |contact |
|00004020| 74 68 65 20 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e |the noti|fication|
|00004030| 20 6d 61 6e 61 67 65 72 | 20 6f 6e 20 61 6e 6f 74 | manager| on anot|
|00004040| 68 65 72 20 6d 61 63 2c | 20 61 6e 64 20 72 75 6e |her mac,| and run|
|00004050| 20 61 0d 3e 70 72 6f 67 | 72 61 6d 20 6f 6e 20 74 | a.>prog|ram on t|
|00004060| 68 61 74 20 6d 61 63 2e | 0d 0d 0d 20 20 20 20 50 |hat mac.|... P|
|00004070| 6f 73 73 69 62 6c 65 20 | 61 6e 64 20 62 65 65 6e |ossible |and been|
|00004080| 20 64 6f 6e 65 2e 20 20 | 49 20 72 65 6d 65 6d 62 | done. |I rememb|
|00004090| 65 72 20 73 65 65 69 6e | 67 20 61 20 6e 6f 74 69 |er seein|g a noti|
|000040a0| 66 69 63 61 74 69 6f 6e | 20 6c 69 6b 65 0d 20 20 |fication| like. |
|000040b0| 20 20 20 20 70 72 6f 67 | 72 61 6d 20 6f 6e 20 55 | prog|ram on U|
|000040c0| 6d 69 63 68 2e 2e 2e 20 | 66 6f 72 67 65 74 20 74 |mich... |forget t|
|000040d0| 68 65 20 6e 61 6d 65 2e | 2e 2e 20 22 42 72 6f 61 |he name.|.. "Broa|
|000040e0| 64 63 61 73 74 22 3f 2e | 20 20 44 75 6e 6e 6f 2e |dcast"?.| Dunno.|
|000040f0| 0d 20 20 20 20 20 20 41 | 6e 79 77 61 79 2c 20 61 |. A|nyway, a|
|00004100| 73 20 49 20 72 65 63 61 | 6c 6c 20 79 6f 75 20 68 |s I reca|ll you h|
|00004110| 61 76 65 20 74 6f 20 68 | 61 76 65 20 70 72 6f 67 |ave to h|ave prog|
|00004120| 72 61 6d 20 6c 69 6e 6b | 69 6e 67 20 6f 6e 20 6f |ram link|ing on o|
|00004130| 6e 20 74 68 65 20 0d 20 | 20 20 20 20 20 72 65 63 |n the . | rec|
|00004140| 65 69 76 69 6e 67 20 6d | 61 63 2c 20 61 6e 64 20 |eiving m|ac, and |
|00004150| 68 61 76 65 20 74 6f 20 | 68 61 76 65 20 6c 6f 61 |have to |have loa|
|00004160| 64 65 64 20 61 6e 20 65 | 78 74 65 6e 73 69 6f 6e |ded an e|xtension|
|00004170| 20 6f 6e 20 74 68 65 0d | 20 20 20 20 20 20 72 65 | on the.| re|
|00004180| 63 65 69 76 69 6e 67 20 | 6d 61 63 20 74 68 61 74 |ceiving |mac that|
|00004190| 20 74 61 6b 65 73 20 79 | 6f 75 72 20 6d 65 73 73 | takes y|our mess|
|000041a0| 61 67 65 20 61 6e 64 20 | 66 6f 72 77 61 72 64 73 |age and |forwards|
|000041b0| 20 69 74 20 74 6f 20 74 | 68 65 0d 20 20 20 20 20 | it to t|he. |
|000041c0| 20 6c 6f 63 61 6c 20 6e | 6f 74 69 66 69 63 61 74 | local n|otificat|
|000041d0| 69 6f 6e 20 6d 61 6e 61 | 67 65 72 2e 20 20 59 6f |ion mana|ger. Yo|
|000041e0| 75 20 63 6f 75 6c 64 20 | 61 6c 73 6f 20 63 72 65 |u could |also cre|
|000041f0| 61 74 65 20 61 6e 20 65 | 78 74 65 6e 73 69 6f 6e |ate an e|xtension|
|00004200| 0d 20 20 20 20 20 20 74 | 68 61 74 20 73 65 6e 64 |. t|hat send|
|00004210| 73 20 6f 75 74 20 61 70 | 70 6c 65 20 65 76 65 6e |s out ap|ple even|
|00004220| 74 73 2c 20 73 6f 20 63 | 6f 75 6c 64 20 6c 61 75 |ts, so c|ould lau|
|00004230| 6e 63 68 20 61 20 6c 6f | 63 61 6c 20 70 72 6f 67 |nch a lo|cal prog|
|00004240| 72 61 6d 0d 20 20 20 20 | 20 20 77 68 65 6e 20 6b |ram. | when k|
|00004250| 65 79 65 64 20 72 65 6d | 6f 74 65 6c 79 2e 20 20 |eyed rem|otely. |
|00004260| 49 27 64 20 63 68 65 63 | 6b 20 6f 75 74 20 4e 49 |I'd chec|k out NI|
|00004270| 4d 3a 6e 65 74 77 6f 72 | 6b 69 6e 67 20 66 6f 72 |M:networ|king for|
|00004280| 20 6d 6f 72 65 0d 20 20 | 20 20 20 20 64 65 74 61 | more. | deta|
|00004290| 69 6c 73 2c 20 6c 75 63 | 6b 0d 0d 20 20 20 20 20 |ils, luc|k.. |
|000042a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042c0| 20 20 20 2d 2d 20 6e 69 | 63 6b 0d 0d 0d 0d 20 20 | -- ni|ck.... |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042f0| 20 20 5f 2f 20 20 20 5f | 2f 20 20 5f 2f 20 20 5f | _/ _|/ _/ _|
|00004300| 2f 5f 2f 5f 2f 20 20 20 | 5f 2f 20 20 20 5f 2f 20 |/_/_/ |_/ _/ |
|00004310| 20 0d 20 20 20 20 20 49 | 6e 74 65 72 65 74 3a 20 | . I|nteret: |
|00004320| 6e 69 63 6b 40 70 69 74 | 74 2e 65 64 75 20 20 20 |nick@pit|t.edu |
|00004330| 20 20 20 20 20 5f 2f 5f | 2f 20 5f 2f 20 20 5f 2f | _/_|/ _/ _/|
|00004340| 20 20 5f 2f 20 20 20 5f | 2f 20 20 5f 2f 5f 2f 5f | _/ _|/ _/_/_|
|00004350| 2f 20 20 20 20 0d 20 20 | 20 20 20 20 65 57 6f 72 |/ . | eWor|
|00004360| 6c 64 3a 20 6e 69 63 6b | 20 20 20 20 20 20 20 20 |ld: nick| |
|00004370| 20 20 20 20 20 20 20 20 | 5f 2f 20 5f 2f 5f 2f 20 | |_/ _/_/ |
|00004380| 20 5f 2f 20 20 5f 2f 20 | 20 20 20 20 20 20 5f 2f | _/ _/ | _/|
|00004390| 20 5f 2f 20 20 20 20 20 | 20 0d 20 20 20 20 20 20 | _/ | . |
|000043a0| 20 20 20 43 49 53 3a 20 | 37 31 32 33 32 2c 37 36 | CIS: |71232,76|
|000043b0| 36 20 20 20 20 20 20 20 | 20 20 20 5f 2f 20 20 20 |6 | _/ |
|000043c0| 5f 2f 20 20 5f 2f 20 20 | 20 5f 2f 5f 2f 5f 2f 20 |_/ _/ | _/_/_/ |
|000043d0| 20 5f 2f 20 20 20 5f 2f | 20 20 20 20 20 0d 0d 0d | _/ _/| ...|
|000043e0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000043f0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00004400| 6f 6d 20 6a 6f 6e 61 73 | 77 40 6c 79 73 61 74 6f |om jonas|w@lysato|
|00004410| 72 2e 6c 69 75 2e 73 65 | 20 28 4a 6f 6e 61 73 20 |r.liu.se| (Jonas |
|00004420| 57 61 6c 6c 64 65 6e 29 | 0d 44 61 74 65 3a 20 32 |Wallden)|.Date: 2|
|00004430| 34 20 53 65 70 20 31 39 | 39 34 20 32 31 3a 31 39 |4 Sep 19|94 21:19|
|00004440| 3a 32 38 20 47 4d 54 0d | 4f 72 67 61 6e 69 7a 61 |:28 GMT.|Organiza|
|00004450| 74 69 6f 6e 3a 20 28 6e | 6f 6e 65 29 0d 0d 61 6c |tion: (n|one)..al|
|00004460| 74 69 74 75 64 65 40 75 | 6d 69 63 68 2e 65 64 75 |titude@u|mich.edu|
|00004470| 20 28 41 6c 65 78 20 54 | 61 6e 67 29 20 77 72 69 | (Alex T|ang) wri|
|00004480| 74 65 73 3a 0d 0d 3e 48 | 69 20 66 6f 6c 6b 73 2e |tes:..>H|i folks.|
|00004490| 20 20 0d 3e 0d 3e 49 20 | 77 61 73 20 77 6f 6e 64 | .>.>I |was wond|
|000044a0| 65 72 69 6e 67 20 69 66 | 20 69 74 20 77 61 73 20 |ering if| it was |
|000044b0| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 70 75 6c 6c |possible| to pull|
|000044c0| 20 75 70 20 61 20 64 69 | 61 6c 6f 67 20 62 6f 78 | up a di|alog box|
|000044d0| 20 6f 72 20 61 6c 65 72 | 74 20 62 6f 78 20 6f 6e | or aler|t box on|
|000044e0| 0d 3e 61 6e 6f 74 68 65 | 72 20 6d 61 63 20 76 69 |.>anothe|r mac vi|
|000044f0| 61 20 65 69 74 68 65 72 | 20 41 70 70 6c 65 54 61 |a either| AppleTa|
|00004500| 6c 6b 20 6f 72 20 49 50 | 2e 20 20 0d 3e 0d 3e 4d |lk or IP|. .>.>M|
|00004510| 65 20 27 6e 20 73 6f 6d | 65 20 66 72 69 65 6e 64 |e 'n som|e friend|
|00004520| 73 20 77 61 6e 74 20 74 | 6f 20 77 72 69 74 65 20 |s want t|o write |
|00004530| 61 6e 20 61 70 70 20 74 | 68 61 74 20 77 69 6c 6c |an app t|hat will|
|00004540| 20 28 69 6e 20 69 74 27 | 73 20 6d 6f 73 74 20 73 | (in it'|s most s|
|00004550| 69 6d 70 6c 65 0d 3e 69 | 6e 63 61 72 6e 61 74 69 |imple.>i|ncarnati|
|00004560| 6f 6e 29 20 6f 70 65 6e | 20 75 70 20 61 6e 20 61 |on) open| up an a|
|00004570| 6c 65 72 74 20 62 6f 78 | 20 6f 6e 20 61 6e 6f 74 |lert box| on anot|
|00004580| 68 65 72 20 6d 61 63 20 | 61 6e 64 20 67 69 76 65 |her mac |and give|
|00004590| 20 74 68 65 6d 20 61 20 | 70 69 65 63 65 20 6f 66 | them a |piece of|
|000045a0| 0d 3e 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 20 |.>inform|ation. |
|000045b0| 0d 3e 0d 3e 49 6e 20 69 | 74 27 73 20 6d 6f 73 74 |.>.>In i|t's most|
|000045c0| 20 63 6f 6d 70 6c 69 63 | 61 74 65 64 20 69 6e 63 | complic|ated inc|
|000045d0| 61 72 6e 61 74 69 6f 6e | 2c 20 77 65 20 77 6f 75 |arnation|, we wou|
|000045e0| 6c 64 20 72 65 61 6c 6c | 79 20 6c 69 6b 65 20 74 |ld reall|y like t|
|000045f0| 6f 20 62 65 20 61 62 6c | 65 20 74 6f 0d 3e 68 61 |o be abl|e to.>ha|
|00004600| 76 65 20 6f 6e 65 20 6d | 61 63 20 63 6f 6e 74 61 |ve one m|ac conta|
|00004610| 63 74 20 74 68 65 20 6e | 6f 74 69 66 69 63 61 74 |ct the n|otificat|
|00004620| 69 6f 6e 20 6d 61 6e 61 | 67 65 72 20 6f 6e 20 61 |ion mana|ger on a|
|00004630| 6e 6f 74 68 65 72 20 6d | 61 63 2c 20 61 6e 64 20 |nother m|ac, and |
|00004640| 72 75 6e 20 61 0d 3e 70 | 72 6f 67 72 61 6d 20 6f |run a.>p|rogram o|
|00004650| 6e 20 74 68 61 74 20 6d | 61 63 2e 0d 3e 0d 3e 54 |n that m|ac..>.>T|
|00004660| 68 69 73 20 69 73 20 61 | 6c 6c 20 70 72 65 73 75 |his is a|ll presu|
|00004670| 6d 69 6e 67 20 77 65 20 | 6b 6e 6f 77 20 74 68 65 |ming we |know the|
|00004680| 20 41 70 70 6c 65 54 61 | 6c 6b 20 6e 6f 64 65 20 | AppleTa|lk node |
|00004690| 6f 72 20 49 50 20 61 64 | 64 72 65 73 73 20 6f 66 |or IP ad|dress of|
|000046a0| 20 74 68 65 0d 3e 73 65 | 6e 64 69 6e 67 20 61 6e | the.>se|nding an|
|000046b0| 64 20 72 65 63 65 69 76 | 69 6e 67 20 6d 61 63 2e |d receiv|ing mac.|
|000046c0| 0d 0d 41 20 6e 69 63 65 | 20 6c 69 74 74 6c 65 20 |..A nice| little |
|000046d0| 68 61 63 6b 20 69 73 20 | 27 52 61 64 69 61 74 69 |hack is |'Radiati|
|000046e0| 6f 6e 20 2b 20 54 72 69 | 67 67 65 72 27 20 77 68 |on + Tri|gger' wh|
|000046f0| 69 63 68 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |ich can |be used |
|00004700| 74 6f 20 66 61 6b 65 0d | 65 72 72 6f 72 20 6d 65 |to fake.|error me|
|00004710| 73 73 61 67 65 73 20 6f | 6e 20 61 6e 6f 74 65 72 |ssages o|n anoter|
|00004720| 20 4d 61 63 27 73 20 73 | 63 72 65 65 6e 2e 20 56 | Mac's s|creen. V|
|00004730| 65 72 79 20 75 73 65 66 | 75 6c 20 69 6e 20 6c 61 |ery usef|ul in la|
|00004740| 62 20 72 6f 6f 6d 73 2e | 2e 2e 20 3a 2d 29 0d 49 |b rooms.|.. :-).I|
|00004750| 74 20 69 73 20 61 6e 20 | 49 4e 49 54 20 74 68 61 |t is an |INIT tha|
|00004760| 74 20 72 65 63 65 69 76 | 65 73 20 6d 65 73 73 61 |t receiv|es messa|
|00004770| 67 65 73 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |ges thro|ugh the |
|00004780| 50 50 43 20 54 6f 6f 6c | 62 6f 78 20 61 6e 64 20 |PPC Tool|box and |
|00004790| 64 69 73 70 6c 61 79 73 | 0d 74 68 65 6d 20 61 73 |displays|.them as|
|000047a0| 20 4e 6f 74 69 66 69 63 | 61 74 69 6f 6e 20 4d 61 | Notific|ation Ma|
|000047b0| 6e 61 67 65 72 20 61 6c | 65 72 74 73 2e 0d 0d 42 |nager al|erts...B|
|000047c0| 54 57 2c 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 |TW, the |default |
|000047d0| 6d 65 73 73 61 67 65 20 | 69 73 20 27 54 68 65 20 |message |is 'The |
|000047e0| 72 61 64 69 61 74 69 6f | 6e 20 73 68 69 65 6c 64 |radiatio|n shield|
|000047f0| 20 6f 6e 20 79 6f 75 72 | 20 4d 61 63 69 6e 74 6f | on your| Macinto|
|00004800| 73 68 20 68 61 73 0d 66 | 61 69 6c 65 64 2e 20 50 |sh has.f|ailed. P|
|00004810| 6c 65 61 73 65 20 73 74 | 65 70 20 62 61 63 6b 20 |lease st|ep back |
|00004820| 35 20 66 65 65 74 2e 27 | 20 77 68 69 63 68 20 65 |5 feet.'| which e|
|00004830| 78 70 6c 61 69 6e 73 20 | 69 74 73 20 6e 61 6d 65 |xplains |its name|
|00004840| 2e 2e 2e 20 55 73 65 20 | 77 69 74 68 0d 63 61 72 |... Use |with.car|
|00004850| 65 20 6f 6e 20 6e 65 77 | 62 69 65 73 21 0d 0d 2d |e on new|bies!..-|
|00004860| 2d 0d 60 2e 60 2e 20 20 | 20 4a 6f 6e 61 73 20 57 |-.`.`. | Jonas W|
|00004870| 61 6c 6c 64 65 6e 20 20 | 20 20 20 20 20 20 20 20 |allden | |
|00004880| 20 20 20 20 20 20 20 20 | 20 20 60 2e 60 2e 60 2e | | `.`.`.|
|00004890| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|000048a0| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 0d 60 2e 60 |`.`.`.`.|`.`..`.`|
|000048b0| 2e 60 2e 20 20 20 49 6e | 74 65 72 6e 65 74 3a 20 |.`. In|ternet: |
|000048c0| 6a 6f 6e 61 73 77 40 6c | 79 73 61 74 6f 72 2e 6c |jonasw@l|ysator.l|
|000048d0| 69 75 2e 73 65 20 20 60 | 2e 60 2e 60 2e 60 2e 60 |iu.se `|.`.`.`.`|
|000048e0| 2e 60 2e 60 2e 60 2e 60 | 2e 60 2e 60 2e 60 2e 60 |.`.`.`.`|.`.`.`.`|
|000048f0| 2e 60 2e 60 2e 60 2e 0d | 60 2e 60 2e 60 2e 60 2e |.`.`.`..|`.`.`.`.|
|00004900| 20 20 20 41 70 70 6c 65 | 4c 69 6e 6b 3a 20 73 77 | Apple|Link: sw|
|00004910| 31 33 36 39 20 20 20 20 | 20 20 20 20 20 20 20 20 |1369 | |
|00004920| 20 20 20 20 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e | `.`.|`.`.`.`.|
|00004930| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|00004940| 60 2e 0d 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |`...----|--------|
|00004950| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00004960| 0d 3e 46 72 6f 6d 20 6a | 6c 61 77 72 69 65 40 6d |.>From j|lawrie@m|
|00004970| 61 6c 69 62 75 2e 73 66 | 75 2e 63 61 20 28 4a 6f |alibu.sf|u.ca (Jo|
|00004980| 68 6e 20 57 69 6c 6c 69 | 61 6d 20 4c 61 77 72 69 |hn Willi|am Lawri|
|00004990| 65 29 0d 53 75 62 6a 65 | 63 74 3a 20 4d 65 6d 6f |e).Subje|ct: Memo|
|000049a0| 72 79 20 6d 6f 76 69 6e | 67 20 61 6e 64 20 49 6e |ry movin|g and In|
|000049b0| 69 74 73 0d 44 61 74 65 | 3a 20 31 36 20 53 65 70 |its.Date|: 16 Sep|
|000049c0| 20 39 34 20 31 37 3a 31 | 33 3a 32 35 20 47 4d 54 | 94 17:1|3:25 GMT|
|000049d0| 0d 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 53 |.Organiz|ation: S|
|000049e0| 69 6d 6f 6e 20 46 72 61 | 73 65 72 20 55 6e 69 76 |imon Fra|ser Univ|
|000049f0| 65 72 73 69 74 79 0d 0d | 48 69 2e 20 20 49 20 77 |ersity..|Hi. I w|
|00004a00| 61 6e 74 20 74 6f 20 68 | 61 76 65 20 61 6e 20 65 |ant to h|ave an e|
|00004a10| 78 74 65 6e 73 69 6f 6e | 20 74 68 61 74 20 70 65 |xtension| that pe|
|00004a20| 72 66 6f 72 6d 73 20 70 | 65 72 69 6f 64 69 63 20 |rforms p|eriodic |
|00004a30| 74 61 6b 73 2e 20 20 49 | 20 68 61 76 65 0d 61 20 |taks. I| have.a |
|00004a40| 73 6b 65 6c 65 74 6f 6e | 20 65 78 74 65 6e 73 69 |skeleton| extensi|
|00004a50| 6f 6e 20 74 68 61 74 20 | 64 6f 65 73 20 74 68 69 |on that |does thi|
|00004a60| 73 20 61 6c 72 65 61 64 | 79 2c 20 62 75 74 20 74 |s alread|y, but t|
|00004a70| 68 65 20 70 72 6f 62 6c | 65 6d 20 69 73 2c 20 49 |he probl|em is, I|
|00004a80| 0d 77 69 6c 6c 20 77 61 | 6e 74 20 74 6f 20 63 61 |.will wa|nt to ca|
|00004a90| 6c 6c 20 74 6f 6f 6c 62 | 6f 78 20 72 6f 75 74 69 |ll toolb|ox routi|
|00004aa0| 6e 65 73 20 74 68 61 74 | 20 77 69 6c 6c 20 63 61 |nes that| will ca|
|00004ab0| 6c 6c 20 74 68 65 20 6d | 65 6d 6f 72 79 20 6d 61 |ll the m|emory ma|
|00004ac0| 6e 61 67 65 72 2e 0d 49 | 73 20 74 68 65 72 65 20 |nager..I|s there |
|00004ad0| 61 20 77 61 79 20 61 72 | 6f 75 6e 64 20 74 68 69 |a way ar|ound thi|
|00004ae0| 73 3f 0d 0d 4a 6f 68 6e | 40 68 65 6c 69 78 2e 6e |s?..John|@helix.n|
|00004af0| 65 74 0d 0d 0d 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |et...+++|++++++++|
|00004b00| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004b10| 0d 0d 3e 46 72 6f 6d 20 | 6f 6e 79 78 74 65 63 68 |..>From |onyxtech|
|00004b20| 40 61 6f 6c 2e 63 6f 6d | 20 28 4f 6e 79 78 54 65 |@aol.com| (OnyxTe|
|00004b30| 63 68 29 0d 44 61 74 65 | 3a 20 31 37 20 53 65 70 |ch).Date|: 17 Sep|
|00004b40| 20 31 39 39 34 20 30 34 | 3a 32 36 3a 30 32 20 2d | 1994 04|:26:02 -|
|00004b50| 30 34 30 30 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0400.Org|anizatio|
|00004b60| 6e 3a 20 41 6d 65 72 69 | 63 61 20 4f 6e 6c 69 6e |n: Ameri|ca Onlin|
|00004b70| 65 2c 20 49 6e 63 2e 20 | 28 31 2d 38 30 30 2d 38 |e, Inc. |(1-800-8|
|00004b80| 32 37 2d 36 33 36 34 29 | 0d 0d 49 6e 20 61 72 74 |27-6364)|..In art|
|00004b90| 69 63 6c 65 20 3c 6a 6c | 61 77 72 69 65 2e 37 37 |icle <jl|awrie.77|
|00004ba0| 39 37 33 35 36 30 35 40 | 73 66 75 2e 63 61 3e 2c |9735605@|sfu.ca>,|
|00004bb0| 20 6a 6c 61 77 72 69 65 | 40 6d 61 6c 69 62 75 2e | jlawrie|@malibu.|
|00004bc0| 73 66 75 2e 63 61 20 28 | 4a 6f 68 6e 20 57 69 6c |sfu.ca (|John Wil|
|00004bd0| 6c 69 61 6d 0d 4c 61 77 | 72 69 65 29 20 77 72 69 |liam.Law|rie) wri|
|00004be0| 74 65 73 3a 0d 0d 3e 20 | 48 69 2e 20 20 49 20 77 |tes:..> |Hi. I w|
|00004bf0| 61 6e 74 20 74 6f 20 68 | 61 76 65 20 61 6e 20 65 |ant to h|ave an e|
|00004c00| 78 74 65 6e 73 69 6f 6e | 20 74 68 61 74 20 70 65 |xtension| that pe|
|00004c10| 72 66 6f 72 6d 73 20 70 | 65 72 69 6f 64 69 63 0d |rforms p|eriodic.|
|00004c20| 3e 20 74 61 6b 73 2e 20 | 20 49 20 68 61 76 65 20 |> taks. | I have |
|00004c30| 61 20 73 6b 65 6c 65 74 | 6f 6e 20 65 78 74 65 6e |a skelet|on exten|
|00004c40| 73 69 6f 6e 20 74 68 61 | 74 20 64 6f 65 73 20 74 |sion tha|t does t|
|00004c50| 68 69 73 20 61 6c 72 65 | 61 64 79 2c 0d 3e 20 62 |his alre|ady,.> b|
|00004c60| 75 74 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 20 69 |ut the p|roblem i|
|00004c70| 73 2c 20 49 20 77 69 6c | 6c 20 77 61 6e 74 20 74 |s, I wil|l want t|
|00004c80| 6f 20 63 61 6c 6c 20 74 | 6f 6f 6c 62 6f 78 20 72 |o call t|oolbox r|
|00004c90| 6f 75 74 69 6e 65 73 0d | 3e 20 74 68 61 74 20 77 |outines.|> that w|
|00004ca0| 69 6c 6c 20 63 61 6c 6c | 20 74 68 65 20 6d 65 6d |ill call| the mem|
|00004cb0| 6f 72 79 20 6d 61 6e 61 | 67 65 72 2e 20 49 73 20 |ory mana|ger. Is |
|00004cc0| 74 68 65 72 65 20 61 20 | 77 61 79 20 61 72 6f 75 |there a |way arou|
|00004cd0| 6e 64 0d 3e 20 74 68 69 | 73 3f 0d 0d 49 74 27 73 |nd.> thi|s?..It's|
|00004ce0| 20 6f 6b 20 74 6f 20 6d | 6f 76 65 20 6d 65 6d 6f | ok to m|ove memo|
|00004cf0| 72 79 20 69 6e 20 61 20 | 74 72 61 70 20 70 61 74 |ry in a |trap pat|
|00004d00| 63 68 2c 20 62 75 74 20 | 49 74 20 61 6c 6c 20 64 |ch, but |It all d|
|00004d10| 65 70 65 6e 64 73 20 6f | 6e 20 77 68 61 74 20 79 |epends o|n what y|
|00004d20| 6f 75 27 72 65 0d 75 73 | 69 6e 67 20 74 6f 20 74 |ou're.us|ing to t|
|00004d30| 72 69 67 67 65 72 20 79 | 6f 75 72 20 65 78 74 65 |rigger y|our exte|
|00004d40| 6e 73 69 6f 6e 20 63 6f | 64 65 3f 20 20 49 66 20 |nsion co|de? If |
|00004d50| 79 6f 75 27 72 65 20 69 | 6e 73 74 61 6c 6c 69 6e |you're i|nstallin|
|00004d60| 67 20 61 20 74 69 6d 65 | 20 6d 61 6e 61 67 65 72 |g a time| manager|
|00004d70| 0d 6f 72 20 56 42 4c 20 | 72 6f 75 74 69 6e 65 2c |.or VBL |routine,|
|00004d80| 20 66 6f 72 67 65 74 20 | 74 72 79 69 6e 67 20 74 | forget |trying t|
|00004d90| 6f 20 6d 6f 76 65 20 6d | 65 6d 6f 72 79 20 64 75 |o move m|emory du|
|00004da0| 72 69 6e 67 20 74 68 61 | 74 20 63 6f 64 65 20 62 |ring tha|t code b|
|00004db0| 65 63 61 75 73 65 20 74 | 68 65 79 0d 63 61 6e 2f |ecause t|hey.can/|
|00004dc0| 77 69 6c 6c 20 62 65 20 | 65 78 65 63 75 74 65 64 |will be |executed|
|00004dd0| 20 64 75 72 69 6e 67 20 | 69 6e 74 65 72 75 70 74 | during |interupt|
|00004de0| 20 74 69 6d 65 20 61 6e | 64 20 6d 6f 76 69 6e 67 | time an|d moving|
|00004df0| 20 6d 65 6d 6f 72 79 20 | 74 68 65 6e 20 69 73 20 | memory |then is |
|00004e00| 61 0d 73 74 72 69 63 74 | 20 6e 6f 20 6e 6f 2e 20 |a.strict| no no. |
|00004e10| 20 49 66 20 79 6f 75 20 | 61 72 65 20 74 72 69 67 | If you |are trig|
|00004e20| 67 65 72 69 6e 67 20 79 | 6f 75 72 20 65 78 74 65 |gering y|our exte|
|00004e30| 6e 73 69 6f 6e 20 63 6f | 64 65 20 6f 66 66 20 61 |nsion co|de off a|
|00004e40| 20 74 72 61 70 20 70 61 | 74 63 68 2c 0d 74 68 65 | trap pa|tch,.the|
|00004e50| 6d 20 6d 61 6b 65 20 73 | 75 72 65 20 69 74 20 69 |m make s|ure it i|
|00004e60| 73 20 61 20 74 72 61 70 | 20 70 61 74 63 68 20 74 |s a trap| patch t|
|00004e70| 68 61 74 20 63 61 6e 20 | 6d 6f 76 65 20 6d 65 6d |hat can |move mem|
|00004e80| 6f 72 79 2e 20 20 54 68 | 65 6e 20 79 6f 75 27 72 |ory. Th|en you'r|
|00004e90| 65 20 6f 6b 2e 20 0d 49 | 66 20 79 6f 75 20 61 72 |e ok. .I|f you ar|
|00004ea0| 65 20 74 72 69 67 67 65 | 72 69 6e 67 20 6f 66 66 |e trigge|ring off|
|00004eb0| 20 61 20 74 72 61 70 20 | 70 61 74 63 68 20 74 68 | a trap |patch th|
|00004ec0| 61 74 20 69 73 6e 27 74 | 20 64 6f 63 75 6d 65 6e |at isn't| documen|
|00004ed0| 74 65 64 20 61 73 20 6d | 6f 76 69 6e 67 0d 6d 65 |ted as m|oving.me|
|00004ee0| 6d 6f 72 79 2c 20 79 6f | 75 27 64 20 62 65 74 74 |mory, yo|u'd bett|
|00004ef0| 65 72 20 63 68 61 6e 67 | 65 20 79 6f 75 72 20 63 |er chang|e your c|
|00004f00| 6f 64 65 20 62 65 63 61 | 75 73 65 20 79 6f 75 27 |ode beca|use you'|
|00004f10| 6c 6c 20 65 76 65 6e 74 | 75 61 6c 6c 79 20 67 65 |ll event|ually ge|
|00004f20| 74 20 69 6e 0d 74 72 6f | 75 62 6c 65 2e 20 41 6e |t in.tro|uble. An|
|00004f30| 64 20 73 69 6e 63 65 20 | 49 27 6d 20 6e 6f 74 20 |d since |I'm not |
|00004f40| 73 75 72 65 20 77 68 61 | 74 20 79 6f 75 27 72 65 |sure wha|t you're|
|00004f50| 20 70 61 74 63 68 69 6e | 67 2c 20 62 65 74 74 65 | patchin|g, bette|
|00004f60| 72 20 6d 61 6b 65 20 73 | 75 72 65 0d 74 68 61 74 |r make s|ure.that|
|00004f70| 20 77 68 61 74 20 79 6f | 75 72 20 74 72 61 70 20 | what yo|ur trap |
|00004f80| 70 61 74 63 68 20 63 61 | 6c 6c 73 20 64 6f 65 73 |patch ca|lls does|
|00004f90| 20 6e 6f 74 20 6c 65 61 | 64 20 74 6f 20 77 68 61 | not lea|d to wha|
|00004fa0| 74 20 79 6f 75 27 72 65 | 20 70 61 74 63 68 69 6e |t you're| patchin|
|00004fb0| 67 2e 20 0d 52 65 2d 65 | 6e 74 72 61 6e 74 20 63 |g. .Re-e|ntrant c|
|00004fc0| 69 74 79 20 75 6e 6c 65 | 73 73 20 79 6f 75 20 68 |ity unle|ss you h|
|00004fd0| 61 6e 64 6c 65 20 69 74 | 20 63 6f 72 72 65 63 74 |andle it| correct|
|00004fe0| 6c 79 2e 0d 0d 64 45 56 | 6f 4e 0d 0d 2b 2b 2b 2b |ly...dEV|oN..++++|
|00004ff0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005000| 2b 2b 2b 2b 2b 2b 2b 0d | 0d 3e 46 72 6f 6d 20 6a |+++++++.|.>From j|
|00005010| 63 6f 72 6e 69 73 68 40 | 6e 65 74 63 6f 6d 2e 63 |cornish@|netcom.c|
|00005020| 6f 6d 20 28 4a 75 64 20 | 43 6f 72 6e 69 73 68 29 |om (Jud |Cornish)|
|00005030| 0d 44 61 74 65 3a 20 53 | 75 6e 2c 20 31 38 20 53 |.Date: S|un, 18 S|
|00005040| 65 70 20 31 39 39 34 20 | 30 38 3a 33 32 3a 33 34 |ep 1994 |08:32:34|
|00005050| 20 47 4d 54 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|00005060| 6e 3a 20 4e 45 54 43 4f | 4d 20 4f 6e 2d 6c 69 6e |n: NETCO|M On-lin|
|00005070| 65 20 43 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 20 |e Commun|ication |
|00005080| 53 65 72 76 69 63 65 73 | 20 28 34 30 38 20 32 36 |Services| (408 26|
|00005090| 31 2d 34 37 30 30 20 67 | 75 65 73 74 29 0d 0d 54 |1-4700 g|uest)..T|
|000050a0| 6f 20 70 65 72 66 6f 72 | 6d 20 70 65 72 69 6f 64 |o perfor|m period|
|000050b0| 69 63 20 74 61 73 6b 73 | 20 74 68 61 74 20 6d 61 |ic tasks| that ma|
|000050c0| 79 20 6d 6f 76 65 2f 70 | 75 72 67 65 20 6d 65 6d |y move/p|urge mem|
|000050d0| 6f 72 79 3a 0d 0d 41 20 | 73 69 6d 70 6c 65 20 73 |ory:..A |simple s|
|000050e0| 6f 6c 75 74 69 6f 6e 20 | 69 73 20 74 6f 20 70 61 |olution |is to pa|
|000050f0| 74 63 68 20 61 20 74 72 | 61 70 20 28 6f 72 20 73 |tch a tr|ap (or s|
|00005100| 65 76 65 72 61 6c 29 20 | 74 68 61 74 20 61 72 65 |everal) |that are|
|00005110| 20 6b 6e 6f 77 6e 20 74 | 6f 0d 6d 6f 76 65 2f 70 | known t|o.move/p|
|00005120| 75 72 67 65 20 6d 65 6d | 6f 72 79 20 61 6e 64 20 |urge mem|ory and |
|00005130| 61 72 65 20 63 6f 6d 6d | 6f 6e 6c 79 20 63 61 6c |are comm|only cal|
|00005140| 6c 65 64 2e 20 20 49 20 | 64 69 64 20 73 6f 6d 65 |led. I |did some|
|00005150| 20 22 4f 53 20 50 72 6f | 66 69 6c 69 6e 67 22 20 | "OS Pro|filing" |
|00005160| 6f 66 0d 6d 79 20 6f 77 | 6e 20 74 6f 20 69 64 65 |of.my ow|n to ide|
|00005170| 6e 74 69 66 79 20 61 20 | 73 65 74 20 6f 66 20 74 |ntify a |set of t|
|00005180| 72 61 70 73 20 74 68 61 | 74 20 49 20 63 6f 75 6c |raps tha|t I coul|
|00005190| 64 20 70 61 74 63 68 20 | 74 68 61 74 20 77 6f 75 |d patch |that wou|
|000051a0| 6c 64 20 67 69 76 65 0d | 66 72 65 71 75 65 6e 74 |ld give.|frequent|
|000051b0| 20 74 69 6d 65 20 74 6f | 20 73 75 63 68 20 61 20 | time to| such a |
|000051c0| 74 61 73 6b 2e 20 20 54 | 68 65 20 6f 74 68 65 72 |task. T|he other|
|000051d0| 20 6f 62 6a 65 63 74 69 | 76 65 20 77 61 73 20 74 | objecti|ve was t|
|000051e0| 6f 20 67 65 74 20 74 69 | 6d 65 20 77 68 65 6e 0d |o get ti|me when.|
|000051f0| 61 70 70 73 2c 20 74 68 | 65 20 4f 53 20 6f 72 20 |apps, th|e OS or |
|00005200| 74 68 65 20 54 6f 6f 6c | 62 6f 78 20 69 73 20 69 |the Tool|box is i|
|00005210| 6e 20 61 20 74 69 67 68 | 74 20 6c 6f 6f 70 20 73 |n a tigh|t loop s|
|00005220| 75 63 68 20 61 73 20 77 | 68 69 6c 65 20 74 72 61 |uch as w|hile tra|
|00005230| 63 6b 69 6e 67 20 61 0d | 63 6c 6f 73 65 20 62 6f |cking a.|close bo|
|00005240| 78 2e 20 20 49 66 20 79 | 6f 75 20 70 61 74 63 68 |x. If y|ou patch|
|00005250| 20 61 6e 79 20 6f 6e 65 | 20 74 72 61 70 2c 20 74 | any one| trap, t|
|00005260| 68 65 72 65 20 77 69 6c | 6c 20 62 65 20 74 69 6d |here wil|l be tim|
|00005270| 65 73 20 77 68 65 6e 20 | 79 6f 75 20 63 61 6e 20 |es when |you can |
|00005280| 67 6f 0d 66 6f 72 20 71 | 75 69 74 65 20 73 6f 6d |go.for q|uite som|
|00005290| 65 20 74 69 6d 65 20 77 | 69 74 68 6f 75 74 20 61 |e time w|ithout a|
|000052a0| 6e 20 6f 70 70 6f 72 74 | 75 6e 69 74 79 20 74 6f |n opport|unity to|
|000052b0| 20 73 6e 61 67 20 73 6f | 6d 65 20 74 69 6d 65 2e | snag so|me time.|
|000052c0| 20 20 49 20 73 68 6f 75 | 6c 64 6e 27 74 0d 67 6f | I shou|ldn't.go|
|000052d0| 20 69 6e 74 6f 20 74 68 | 65 20 64 65 74 61 69 6c | into th|e detail|
|000052e0| 73 2c 20 62 75 74 20 77 | 69 74 68 20 73 6f 6d 65 |s, but w|ith some|
|000052f0| 20 63 6f 6d 6d 6f 6e 20 | 73 65 6e 73 65 20 28 61 | common |sense (a|
|00005300| 6e 64 20 61 20 6c 69 74 | 74 6c 65 20 74 69 6d 65 |nd a lit|tle time|
|00005310| 20 77 69 74 68 0d 6d 61 | 63 73 62 75 67 29 20 6f | with.ma|csbug) o|
|00005320| 6e 65 20 63 61 6e 20 70 | 69 63 6b 20 61 20 70 72 |ne can p|ick a pr|
|00005330| 65 74 74 79 20 67 6f 6f | 64 20 73 65 74 20 6f 66 |etty goo|d set of|
|00005340| 20 74 72 61 70 73 2e 20 | 20 41 6c 6c 20 74 68 69 | traps. | All thi|
|00005350| 73 20 69 73 20 6f 6e 6c | 79 0d 6e 65 63 65 73 73 |s is onl|y.necess|
|00005360| 61 72 79 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 |ary if y|ou have |
|00005370| 61 20 72 65 61 6c 6c 79 | 20 63 72 69 74 69 63 61 |a really| critica|
|00005380| 6c 20 74 69 6d 65 20 62 | 61 73 65 64 20 74 61 73 |l time b|ased tas|
|00005390| 6b 2e 20 20 4e 6f 74 20 | 63 72 69 74 69 63 61 6c |k. Not |critical|
|000053a0| 20 69 6e 0d 61 63 63 75 | 72 61 63 79 2c 20 62 75 | in.accu|racy, bu|
|000053b0| 74 20 69 6e 20 61 76 6f | 69 64 69 6e 67 20 6c 6f |t in avo|iding lo|
|000053c0| 6e 67 20 70 61 75 73 65 | 73 2e 20 20 41 6c 6c 20 |ng pause|s. All |
|000053d0| 74 68 69 73 20 69 73 20 | 6e 65 63 65 73 73 61 72 |this is |necessar|
|000053e0| 79 20 62 65 63 61 75 73 | 65 20 6f 66 0d 74 68 65 |y becaus|e of.the|
|000053f0| 20 77 61 79 20 22 6d 75 | 6c 74 69 2d 74 61 73 6b | way "mu|lti-task|
|00005400| 69 6e 67 22 20 69 73 20 | 64 6f 6e 65 20 6f 6e 20 |ing" is |done on |
|00005410| 74 68 65 20 6d 61 63 2e | 20 20 50 72 6f 63 65 73 |the mac.| Proces|
|00005420| 73 65 73 20 61 72 65 20 | 6f 6e 6c 79 20 67 72 61 |ses are |only gra|
|00005430| 6e 74 65 64 0d 74 69 6d | 65 20 77 68 65 6e 20 6f |nted.tim|e when o|
|00005440| 74 68 65 72 73 20 73 68 | 61 72 65 20 69 74 2e 20 |thers sh|are it. |
|00005450| 0d 0d 41 6e 6f 74 68 65 | 72 20 6f 70 74 69 6f 6e |..Anothe|r option|
|00005460| 20 77 6f 75 6c 64 20 62 | 65 20 74 6f 20 69 6e 73 | would b|e to ins|
|00005470| 74 61 6c 6c 20 61 20 64 | 72 69 76 65 72 20 77 68 |tall a d|river wh|
|00005480| 69 63 68 20 72 65 71 75 | 65 73 74 65 64 20 70 65 |ich requ|ested pe|
|00005490| 72 69 6f 64 69 63 20 74 | 69 6d 65 2e 20 0d 54 68 |riodic t|ime. .Th|
|000054a0| 69 73 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 68 |is is ac|tually h|
|000054b0| 61 72 64 65 72 20 74 68 | 61 6e 20 6a 75 73 74 20 |arder th|an just |
|000054c0| 70 61 74 63 68 69 6e 67 | 20 5f 53 79 73 74 65 6d |patching| _System|
|000054d0| 54 61 73 6b 2c 20 77 68 | 69 63 68 20 49 20 62 65 |Task, wh|ich I be|
|000054e0| 6c 69 65 76 65 0d 77 6f | 75 6c 64 20 66 75 6e 63 |lieve.wo|uld func|
|000054f0| 74 69 6f 6e 20 69 64 65 | 6e 74 69 63 61 6c 6c 79 |tion ide|ntically|
|00005500| 2e 20 0d 0d 59 65 74 20 | 61 6e 6f 74 68 65 72 20 |. ..Yet |another |
|00005510| 6f 70 74 69 6f 6e 20 69 | 73 20 74 6f 20 70 72 65 |option i|s to pre|
|00005520| 2d 61 6c 6c 6f 63 61 74 | 65 20 73 6f 6d 65 20 6d |-allocat|e some m|
|00005530| 65 6d 6f 72 79 20 77 69 | 74 68 20 79 6f 75 72 20 |emory wi|th your |
|00005540| 49 4e 49 54 2c 20 74 68 | 65 6e 20 65 61 74 0d 69 |INIT, th|en eat.i|
|00005550| 74 20 75 70 20 61 73 20 | 79 6f 75 20 6e 65 65 64 |t up as |you need|
|00005560| 20 69 74 2e 20 20 49 6e | 20 61 20 73 65 6e 73 65 | it. In| a sense|
|00005570| 2c 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 74 |, depend|ing on t|
|00005580| 68 65 20 63 6f 6d 70 6c | 65 78 69 74 79 20 6f 66 |he compl|exity of|
|00005590| 20 79 6f 75 72 0d 6d 65 | 6d 6f 72 79 20 75 73 65 | your.me|mory use|
|000055a0| 2c 20 79 6f 75 20 63 61 | 6e 20 6a 75 73 74 20 73 |, you ca|n just s|
|000055b0| 74 61 72 74 20 66 69 6c | 6c 69 6e 67 20 75 70 20 |tart fil|ling up |
|000055c0| 61 20 73 69 6d 70 6c 65 | 20 62 75 66 66 65 72 20 |a simple| buffer |
|000055d0| 77 69 74 68 20 64 61 74 | 61 2c 20 6f 72 0d 79 6f |with dat|a, or.yo|
|000055e0| 75 20 63 6f 75 6c 64 20 | 6d 61 6b 65 20 79 6f 75 |u could |make you|
|000055f0| 72 20 6f 77 6e 20 73 75 | 62 20 6d 65 6d 6f 72 79 |r own su|b memory|
|00005600| 20 6d 61 6e 61 67 65 72 | 21 21 21 20 0d 0d 41 20 | manager|!!! ..A |
|00005610| 68 79 62 72 69 64 20 73 | 6f 6c 75 74 69 6f 6e 20 |hybrid s|olution |
|00005620| 69 73 20 74 6f 20 70 65 | 72 66 6f 72 6d 20 70 65 |is to pe|rform pe|
|00005630| 72 69 6f 64 69 63 20 74 | 61 73 6b 73 20 76 69 61 |riodic t|asks via|
|00005640| 20 74 68 65 20 74 69 6d | 65 20 6d 61 6e 61 67 65 | the tim|e manage|
|00005650| 72 2c 20 77 69 74 68 0d | 61 63 63 75 72 61 63 79 |r, with.|accuracy|
|00005660| 20 61 6e 64 20 6e 65 61 | 72 6c 79 20 67 75 61 72 | and nea|rly guar|
|00005670| 61 6e 74 65 65 64 20 74 | 69 6d 65 2c 20 74 68 65 |anteed t|ime, the|
|00005680| 6e 20 77 68 65 6e 20 79 | 6f 75 20 66 69 6c 6c 20 |n when y|ou fill |
|00005690| 75 70 20 79 6f 75 72 20 | 62 75 66 66 65 72 20 28 |up your |buffer (|
|000056a0| 6f 72 0d 67 65 74 20 73 | 75 66 66 69 63 69 65 6e |or.get s|ufficien|
|000056b0| 74 6c 79 20 63 6c 6f 73 | 65 20 74 6f 20 69 74 29 |tly clos|e to it)|
|000056c0| 2c 20 79 6f 75 20 73 65 | 74 20 61 20 66 6c 61 67 |, you se|t a flag|
|000056d0| 20 77 68 69 63 68 20 61 | 20 5f 53 79 73 74 65 6d | which a| _System|
|000056e0| 54 61 73 6b 20 70 61 74 | 63 68 0d 63 61 6e 20 75 |Task pat|ch.can u|
|000056f0| 73 65 20 74 6f 20 6b 6e | 6f 77 20 77 68 65 6e 20 |se to kn|ow when |
|00005700| 74 6f 20 67 72 6f 77 20 | 74 68 65 20 62 75 66 66 |to grow |the buff|
|00005710| 65 72 2e 20 20 59 6f 75 | 20 77 6f 75 6c 64 20 6e |er. You| would n|
|00005720| 65 65 64 20 74 6f 20 74 | 65 6d 70 6f 72 61 72 69 |eed to t|emporari|
|00005730| 6c 79 0d 73 75 73 70 65 | 6e 64 20 79 6f 75 72 20 |ly.suspe|nd your |
|00005740| 75 73 65 20 6f 66 20 74 | 68 65 20 62 75 66 66 65 |use of t|he buffe|
|00005750| 72 20 77 68 69 6c 65 20 | 74 68 65 20 70 61 74 63 |r while |the patc|
|00005760| 68 20 69 73 20 67 72 6f | 77 69 6e 67 20 28 61 6e |h is gro|wing (an|
|00005770| 64 20 70 72 6f 62 61 62 | 6c 79 0d 6d 6f 76 69 6e |d probab|ly.movin|
|00005780| 67 29 20 69 74 2e 20 20 | 54 68 69 73 20 63 61 6e |g) it. |This can|
|00005790| 20 62 65 20 64 6f 6e 65 | 20 77 69 74 68 20 61 6e | be done| with an|
|000057a0| 6f 74 68 65 72 20 66 6c | 61 67 20 6d 61 6e 69 70 |other fl|ag manip|
|000057b0| 75 6c 61 74 65 64 20 6a | 75 73 74 20 62 65 66 6f |ulated j|ust befo|
|000057c0| 72 65 0d 61 6e 64 20 61 | 66 74 65 72 20 74 68 65 |re.and a|fter the|
|000057d0| 20 53 65 74 48 61 6e 64 | 6c 65 53 69 7a 65 2e 20 | SetHand|leSize. |
|000057e0| 54 68 65 20 70 65 72 69 | 6f 64 69 63 20 74 61 73 |The peri|odic tas|
|000057f0| 6b 20 77 6f 75 6c 64 20 | 61 6c 77 61 79 73 20 6d |k would |always m|
|00005800| 61 6b 65 20 73 75 72 65 | 20 74 68 69 73 0d 66 6c |ake sure| this.fl|
|00005810| 61 67 20 77 61 73 20 63 | 6c 65 61 72 20 62 65 66 |ag was c|lear bef|
|00005820| 6f 72 65 20 64 65 72 65 | 66 65 72 65 6e 63 69 6e |ore dere|ferencin|
|00005830| 67 20 74 68 65 20 68 61 | 6e 64 6c 65 20 61 6e 64 |g the ha|ndle and|
|00005840| 20 75 73 69 6e 67 20 74 | 68 65 20 62 75 66 66 65 | using t|he buffe|
|00005850| 72 2e 20 0d 0d 49 20 68 | 61 76 65 20 6c 69 74 74 |r. ..I h|ave litt|
|00005860| 6c 65 20 69 64 65 61 20 | 77 68 61 74 20 79 6f 75 |le idea |what you|
|00005870| 72 20 61 63 74 75 61 6c | 20 6e 65 65 64 73 20 61 |r actual| needs a|
|00005880| 72 65 20 62 75 74 20 49 | 20 68 6f 70 65 20 74 68 |re but I| hope th|
|00005890| 61 74 20 74 68 69 73 0d | 64 69 73 63 75 73 73 69 |at this.|discussi|
|000058a0| 6f 6e 20 69 73 20 68 65 | 6c 70 66 75 6c 2e 20 20 |on is he|lpful. |
|000058b0| 48 6f 70 65 66 75 6c 6c | 79 2c 20 61 20 73 69 6d |Hopefull|y, a sim|
|000058c0| 70 6c 65 20 70 61 74 63 | 68 20 77 69 6c 6c 20 73 |ple patc|h will s|
|000058d0| 75 66 66 69 63 65 2e 20 | 20 41 73 20 66 61 72 20 |uffice. | As far |
|000058e0| 61 73 0d 49 20 68 61 76 | 65 20 73 65 65 6e 20 28 |as.I hav|e seen (|
|000058f0| 36 38 6b 20 73 79 73 20 | 37 2e 35 29 2c 20 74 68 |68k sys |7.5), th|
|00005900| 65 20 4f 53 20 73 74 69 | 6c 6c 20 63 61 6c 6c 73 |e OS sti|ll calls|
|00005910| 20 5f 53 79 73 74 65 6d | 54 61 73 6b 20 70 65 72 | _System|Task per|
|00005920| 69 6f 64 69 63 61 6c 6c | 79 2e 20 0d 49 66 20 74 |iodicall|y. .If t|
|00005930| 68 69 73 20 69 73 20 69 | 6e 64 65 65 64 20 74 68 |his is i|ndeed th|
|00005940| 65 20 63 61 73 65 2c 20 | 69 74 20 69 73 20 61 20 |e case, |it is a |
|00005950| 67 6f 6f 64 20 74 61 72 | 67 65 74 20 61 73 20 6f |good tar|get as o|
|00005960| 74 68 65 72 20 70 72 6f | 63 65 73 73 65 73 20 77 |ther pro|cesses w|
|00005970| 69 6c 6c 0d 65 78 70 65 | 63 74 20 74 6f 20 73 68 |ill.expe|ct to sh|
|00005980| 61 72 65 20 74 69 6d 65 | 20 77 68 65 6e 20 74 68 |are time| when th|
|00005990| 69 73 20 68 61 70 70 65 | 6e 73 20 28 75 73 75 61 |is happe|ns (usua|
|000059a0| 6c 6c 79 20 66 72 6f 6d | 20 61 20 5f 77 61 69 74 |lly from| a _wait|
|000059b0| 4e 65 78 74 45 76 65 6e | 74 0d 63 61 6c 6c 29 2e |NextEven|t.call).|
|000059c0| 20 0d 0d 41 6e 79 20 63 | 6f 6d 6d 65 6e 74 73 20 | ..Any c|omments |
|000059d0| 6f 6e 20 6d 79 20 63 6f | 6d 6d 65 6e 74 73 20 77 |on my co|mments w|
|000059e0| 6f 75 6c 64 20 62 65 20 | 61 70 70 72 65 63 69 61 |ould be |apprecia|
|000059f0| 74 65 64 2e 0d 0d 45 72 | 69 6b 20 4a 2e 20 52 6f |ted...Er|ik J. Ro|
|00005a00| 67 65 72 73 0d 0d 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |gers..++|++++++++|
|00005a10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005a20| 2b 0d 0d 3e 46 72 6f 6d | 20 72 65 73 6e 69 63 6b |+..>From| resnick|
|00005a30| 40 75 69 75 63 2e 65 64 | 75 20 28 50 65 74 65 20 |@uiuc.ed|u (Pete |
|00005a40| 52 65 73 6e 69 63 6b 29 | 0d 44 61 74 65 3a 20 53 |Resnick)|.Date: S|
|00005a50| 75 6e 2c 20 31 38 20 53 | 65 70 20 31 39 39 34 20 |un, 18 S|ep 1994 |
|00005a60| 31 33 3a 30 30 3a 33 37 | 20 2d 30 35 30 30 0d 4f |13:00:37| -0500.O|
|00005a70| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 55 6e 69 |rganizat|ion: Uni|
|00005a80| 76 65 72 73 69 74 79 20 | 6f 66 20 49 6c 6c 69 6e |versity |of Illin|
|00005a90| 6f 69 73 20 61 74 20 55 | 72 62 61 6e 61 2d 43 68 |ois at U|rbana-Ch|
|00005aa0| 61 6d 70 61 69 67 6e 0d | 0d 49 6e 20 61 72 74 69 |ampaign.|.In arti|
|00005ab0| 63 6c 65 20 3c 6a 6c 61 | 77 72 69 65 2e 37 37 39 |cle <jla|wrie.779|
|00005ac0| 37 33 35 36 30 35 40 73 | 66 75 2e 63 61 3e 2c 20 |735605@s|fu.ca>, |
|00005ad0| 6a 6c 61 77 72 69 65 40 | 6d 61 6c 69 62 75 2e 73 |jlawrie@|malibu.s|
|00005ae0| 66 75 2e 63 61 20 28 4a | 6f 68 6e 20 57 69 6c 6c |fu.ca (J|ohn Will|
|00005af0| 69 61 6d 0d 4c 61 77 72 | 69 65 29 20 77 72 6f 74 |iam.Lawr|ie) wrot|
|00005b00| 65 3a 0d 0d 3e 20 48 69 | 2e 20 20 49 20 77 61 6e |e:..> Hi|. I wan|
|00005b10| 74 20 74 6f 20 68 61 76 | 65 20 61 6e 20 65 78 74 |t to hav|e an ext|
|00005b20| 65 6e 73 69 6f 6e 20 74 | 68 61 74 20 70 65 72 66 |ension t|hat perf|
|00005b30| 6f 72 6d 73 20 70 65 72 | 69 6f 64 69 63 20 74 61 |orms per|iodic ta|
|00005b40| 6b 73 2e 20 20 49 20 68 | 61 76 65 0d 3e 20 61 20 |ks. I h|ave.> a |
|00005b50| 73 6b 65 6c 65 74 6f 6e | 20 65 78 74 65 6e 73 69 |skeleton| extensi|
|00005b60| 6f 6e 20 74 68 61 74 20 | 64 6f 65 73 20 74 68 69 |on that |does thi|
|00005b70| 73 20 61 6c 72 65 61 64 | 79 2c 20 62 75 74 20 74 |s alread|y, but t|
|00005b80| 68 65 20 70 72 6f 62 6c | 65 6d 20 69 73 2c 20 49 |he probl|em is, I|
|00005b90| 0d 3e 20 77 69 6c 6c 20 | 77 61 6e 74 20 74 6f 20 |.> will |want to |
|00005ba0| 63 61 6c 6c 20 74 6f 6f | 6c 62 6f 78 20 72 6f 75 |call too|lbox rou|
|00005bb0| 74 69 6e 65 73 20 74 68 | 61 74 20 77 69 6c 6c 20 |tines th|at will |
|00005bc0| 63 61 6c 6c 20 74 68 65 | 20 6d 65 6d 6f 72 79 20 |call the| memory |
|00005bd0| 6d 61 6e 61 67 65 72 2e | 0d 3e 20 49 73 20 74 68 |manager.|.> Is th|
|00005be0| 65 72 65 20 61 20 77 61 | 79 20 61 72 6f 75 6e 64 |ere a wa|y around|
|00005bf0| 20 74 68 69 73 3f 0d 0d | 4d 79 20 70 65 72 73 6f | this?..|My perso|
|00005c00| 6e 61 6c 20 66 61 76 6f | 72 69 74 65 20 69 73 20 |nal favo|rite is |
|00005c10| 74 6f 20 75 73 65 20 61 | 20 54 69 6d 65 20 4d 61 |to use a| Time Ma|
|00005c20| 6e 61 67 65 72 20 74 61 | 73 6b 20 74 6f 20 64 6f |nager ta|sk to do|
|00005c30| 20 74 68 65 20 70 65 72 | 69 6f 64 69 63 0d 70 61 | the per|iodic.pa|
|00005c40| 72 74 2c 20 61 6e 64 20 | 68 61 76 65 20 74 68 65 |rt, and |have the|
|00005c50| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 70 72 6f 63 | complet|ion proc|
|00005c60| 20 66 6f 72 20 74 68 65 | 20 54 69 6d 65 20 4d 61 | for the| Time Ma|
|00005c70| 6e 61 67 65 72 20 72 6f | 75 74 69 6e 65 20 70 6f |nager ro|utine po|
|00005c80| 73 74 20 61 0d 4e 6f 74 | 69 66 69 63 61 74 69 6f |st a.Not|ificatio|
|00005c90| 6e 20 4d 61 6e 61 67 65 | 72 20 72 65 71 75 65 73 |n Manage|r reques|
|00005ca0| 74 20 74 68 61 74 20 68 | 61 73 20 61 6c 6c 20 74 |t that h|as all t|
|00005cb0| 68 65 20 66 69 65 6c 64 | 73 20 65 78 63 65 70 74 |he field|s except|
|00005cc0| 20 6e 6d 52 65 73 70 0d | 63 6c 65 61 72 65 64 2e | nmResp.|cleared.|
|00005cd0| 20 49 6e 20 74 68 65 20 | 6e 6f 74 69 66 69 63 61 | In the |notifica|
|00005ce0| 74 69 6f 6e 20 72 65 73 | 70 6f 6e 73 65 2c 20 79 |tion res|ponse, y|
|00005cf0| 6f 75 20 63 61 6e 20 64 | 6f 20 77 68 61 74 65 76 |ou can d|o whatev|
|00005d00| 65 72 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 64 |er you w|ant to d|
|00005d10| 6f 0d 73 69 6e 63 65 20 | 69 74 20 69 73 20 4d 65 |o.since |it is Me|
|00005d20| 6d 6f 72 79 20 4d 61 6e | 61 67 65 72 20 73 61 66 |mory Man|ager saf|
|00005d30| 65 2e 0d 0d 70 72 0d 2d | 2d 20 0d 50 65 74 65 20 |e...pr.-|- .Pete |
|00005d40| 52 65 73 6e 69 63 6b 20 | 20 20 20 28 2e 2e 2e 73 |Resnick | (...s|
|00005d50| 6f 20 77 68 61 74 20 69 | 73 20 61 20 6d 6f 6a 6f |o what i|s a mojo|
|00005d60| 2c 20 61 6e 64 20 77 68 | 79 20 77 6f 75 6c 64 20 |, and wh|y would |
|00005d70| 6f 6e 65 20 62 65 20 72 | 69 73 69 6e 67 3f 29 0d |one be r|ising?).|
|00005d80| 44 6f 63 74 6f 72 61 6c | 20 53 74 75 64 65 6e 74 |Doctoral| Student|
|00005d90| 20 2d 20 50 68 69 6c 6f | 73 6f 70 68 79 20 44 65 | - Philo|sophy De|
|00005da0| 70 61 72 74 6d 65 6e 74 | 2c 20 47 72 65 67 6f 72 |partment|, Gregor|
|00005db0| 79 20 48 61 6c 6c 2c 20 | 55 49 55 43 0d 53 79 73 |y Hall, |UIUC.Sys|
|00005dc0| 74 65 6d 20 6d 61 6e 61 | 67 65 72 20 2d 20 43 6f |tem mana|ger - Co|
|00005dd0| 67 6e 69 74 69 76 65 20 | 53 63 69 65 6e 63 65 20 |gnitive |Science |
|00005de0| 47 72 6f 75 70 2c 20 42 | 65 63 6b 6d 61 6e 20 49 |Group, B|eckman I|
|00005df0| 6e 73 74 69 74 75 74 65 | 2c 20 55 49 55 43 0d 49 |nstitute|, UIUC.I|
|00005e00| 6e 74 65 72 6e 65 74 3a | 20 72 65 73 6e 69 63 6b |nternet:| resnick|
|00005e10| 40 75 69 75 63 2e 65 64 | 75 0d 0d 2b 2b 2b 2b 2b |@uiuc.ed|u..+++++|
|00005e20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005e30| 2b 2b 2b 2b 2b 2b 0d 0d | 3e 46 72 6f 6d 20 4a 61 |++++++..|>From Ja|
|00005e40| 65 67 65 72 40 66 71 75 | 65 73 74 2e 63 6f 6d 20 |eger@fqu|est.com |
|00005e50| 28 42 72 69 61 6e 20 53 | 74 65 72 6e 29 0d 44 61 |(Brian S|tern).Da|
|00005e60| 74 65 3a 20 31 39 20 53 | 65 70 20 31 39 39 34 20 |te: 19 S|ep 1994 |
|00005e70| 30 35 3a 30 33 3a 32 35 | 20 47 4d 54 0d 4f 72 67 |05:03:25| GMT.Org|
|00005e80| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 54 68 65 20 55 |anizatio|n: The U|
|00005e90| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 54 65 78 |niversit|y of Tex|
|00005ea0| 61 73 20 61 74 20 41 75 | 73 74 69 6e 2c 20 41 75 |as at Au|stin, Au|
|00005eb0| 73 74 69 6e 2c 20 54 65 | 78 61 73 0d 0d 49 6e 20 |stin, Te|xas..In |
|00005ec0| 61 72 74 69 63 6c 65 20 | 3c 6a 6c 61 77 72 69 65 |article |<jlawrie|
|00005ed0| 2e 37 37 39 37 33 35 36 | 30 35 40 73 66 75 2e 63 |.7797356|05@sfu.c|
|00005ee0| 61 3e 2c 20 6a 6c 61 77 | 72 69 65 40 6d 61 6c 69 |a>, jlaw|rie@mali|
|00005ef0| 62 75 2e 73 66 75 2e 63 | 61 20 28 4a 6f 68 6e 20 |bu.sfu.c|a (John |
|00005f00| 57 69 6c 6c 69 61 6d 0d | 4c 61 77 72 69 65 29 20 |William.|Lawrie) |
|00005f10| 77 72 6f 74 65 3a 0d 0d | 3c 20 48 69 2e 20 20 49 |wrote:..|< Hi. I|
|00005f20| 20 77 61 6e 74 20 74 6f | 20 68 61 76 65 20 61 6e | want to| have an|
|00005f30| 20 65 78 74 65 6e 73 69 | 6f 6e 20 74 68 61 74 20 | extensi|on that |
|00005f40| 70 65 72 66 6f 72 6d 73 | 20 70 65 72 69 6f 64 69 |performs| periodi|
|00005f50| 63 20 74 61 6b 73 2e 20 | 20 49 20 68 61 76 65 0d |c taks. | I have.|
|00005f60| 3c 20 61 20 73 6b 65 6c | 65 74 6f 6e 20 65 78 74 |< a skel|eton ext|
|00005f70| 65 6e 73 69 6f 6e 20 74 | 68 61 74 20 64 6f 65 73 |ension t|hat does|
|00005f80| 20 74 68 69 73 20 61 6c | 72 65 61 64 79 2c 20 62 | this al|ready, b|
|00005f90| 75 74 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 20 69 |ut the p|roblem i|
|00005fa0| 73 2c 20 49 0d 3c 20 77 | 69 6c 6c 20 77 61 6e 74 |s, I.< w|ill want|
|00005fb0| 20 74 6f 20 63 61 6c 6c | 20 74 6f 6f 6c 62 6f 78 | to call| toolbox|
|00005fc0| 20 72 6f 75 74 69 6e 65 | 73 20 74 68 61 74 20 77 | routine|s that w|
|00005fd0| 69 6c 6c 20 63 61 6c 6c | 20 74 68 65 20 6d 65 6d |ill call| the mem|
|00005fe0| 6f 72 79 20 6d 61 6e 61 | 67 65 72 2e 0d 3c 20 49 |ory mana|ger..< I|
|00005ff0| 73 20 74 68 65 72 65 20 | 61 20 77 61 79 20 61 72 |s there |a way ar|
|00006000| 6f 75 6e 64 20 74 68 69 | 73 3f 0d 3c 20 0d 3c 20 |ound thi|s?.< .< |
|00006010| 4a 6f 68 6e 40 68 65 6c | 69 78 2e 6e 65 74 0d 0d |John@hel|ix.net..|
|00006020| 41 20 6a 47 4e 45 46 69 | 6c 74 65 72 20 69 73 20 |A jGNEFi|lter is |
|00006030| 61 20 73 69 6d 70 6c 65 | 20 77 61 79 20 74 6f 20 |a simple| way to |
|00006040| 67 65 74 20 70 65 72 69 | 6f 64 69 63 20 74 69 6d |get peri|odic tim|
|00006050| 65 20 61 6e 64 20 79 6f | 75 20 63 61 6e 20 6d 6f |e and yo|u can mo|
|00006060| 76 65 20 6d 65 6d 6f 72 | 79 0d 69 66 20 79 6f 75 |ve memor|y.if you|
|00006070| 20 6e 65 65 64 20 74 6f | 2e 20 20 54 68 65 20 6f | need to|. The o|
|00006080| 6e 6c 79 20 70 72 6f 62 | 6c 65 6d 20 69 73 20 74 |nly prob|lem is t|
|00006090| 68 61 74 20 79 6f 75 20 | 61 72 65 6e 27 74 20 67 |hat you |aren't g|
|000060a0| 75 61 72 61 6e 74 65 65 | 64 20 74 68 61 74 20 69 |uarantee|d that i|
|000060b0| 74 0d 77 69 6c 6c 20 62 | 65 20 63 61 6c 6c 65 64 |t.will b|e called|
|000060c0| 20 66 72 65 71 75 65 6e | 74 6c 79 2e 0d 0d 2d 2d | frequen|tly...--|
|000060d0| 20 0d 42 72 69 61 6e 20 | 20 53 74 65 72 6e 20 20 | .Brian | Stern |
|000060e0| 3a 2d 7b 29 7d 0d 4a 61 | 65 67 65 72 40 66 71 75 |:-{)}.Ja|eger@fqu|
|000060f0| 65 73 74 2e 63 6f 6d 0d | 0d 2b 2b 2b 2b 2b 2b 2b |est.com.|.+++++++|
|00006100| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00006110| 2b 2b 2b 2b 0d 0d 3e 46 | 72 6f 6d 20 62 6c 6f 62 |++++..>F|rom blob|
|00006120| 40 61 70 70 6c 65 2e 63 | 6f 6d 20 28 42 72 69 61 |@apple.c|om (Bria|
|00006130| 6e 20 42 65 63 68 74 65 | 6c 29 0d 44 61 74 65 3a |n Bechte|l).Date:|
|00006140| 20 32 34 20 53 65 70 20 | 31 39 39 34 20 31 34 3a | 24 Sep |1994 14:|
|00006150| 33 39 3a 35 36 20 2d 30 | 37 30 30 0d 4f 72 67 61 |39:56 -0|700.Orga|
|00006160| 6e 69 7a 61 74 69 6f 6e | 3a 20 41 70 70 6c 65 20 |nization|: Apple |
|00006170| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 2c 20 |Computer|, Inc., |
|00006180| 43 75 70 65 72 74 69 6e | 6f 2c 20 43 61 6c 69 66 |Cupertin|o, Calif|
|00006190| 6f 72 6e 69 61 0d 0d 4a | 61 65 67 65 72 40 66 71 |ornia..J|aeger@fq|
|000061a0| 75 65 73 74 2e 63 6f 6d | 20 28 42 72 69 61 6e 20 |uest.com| (Brian |
|000061b0| 53 74 65 72 6e 29 20 77 | 72 69 74 65 73 3a 0d 0d |Stern) w|rites:..|
|000061c0| 3e 49 6e 20 61 72 74 69 | 63 6c 65 20 3c 6a 6c 61 |>In arti|cle <jla|
|000061d0| 77 72 69 65 2e 37 37 39 | 37 33 35 36 30 35 40 73 |wrie.779|735605@s|
|000061e0| 66 75 2e 63 61 3e 2c 20 | 6a 6c 61 77 72 69 65 40 |fu.ca>, |jlawrie@|
|000061f0| 6d 61 6c 69 62 75 2e 73 | 66 75 2e 63 61 20 28 4a |malibu.s|fu.ca (J|
|00006200| 6f 68 6e 20 57 69 6c 6c | 69 61 6d 0d 3e 4c 61 77 |ohn Will|iam.>Law|
|00006210| 72 69 65 29 20 77 72 6f | 74 65 3a 0d 0d 3e 3c 20 |rie) wro|te:..>< |
|00006220| 48 69 2e 20 20 49 20 77 | 61 6e 74 20 74 6f 20 68 |Hi. I w|ant to h|
|00006230| 61 76 65 20 61 6e 20 65 | 78 74 65 6e 73 69 6f 6e |ave an e|xtension|
|00006240| 20 74 68 61 74 20 70 65 | 72 66 6f 72 6d 73 20 70 | that pe|rforms p|
|00006250| 65 72 69 6f 64 69 63 20 | 74 61 6b 73 2e 20 20 49 |eriodic |taks. I|
|00006260| 20 68 61 76 65 0d 3e 3c | 20 61 20 73 6b 65 6c 65 | have.><| a skele|
|00006270| 74 6f 6e 20 65 78 74 65 | 6e 73 69 6f 6e 20 74 68 |ton exte|nsion th|
|00006280| 61 74 20 64 6f 65 73 20 | 74 68 69 73 20 61 6c 72 |at does |this alr|
|00006290| 65 61 64 79 2c 20 62 75 | 74 20 74 68 65 20 70 72 |eady, bu|t the pr|
|000062a0| 6f 62 6c 65 6d 20 69 73 | 2c 20 49 0d 3e 3c 20 77 |oblem is|, I.>< w|
|000062b0| 69 6c 6c 20 77 61 6e 74 | 20 74 6f 20 63 61 6c 6c |ill want| to call|
|000062c0| 20 74 6f 6f 6c 62 6f 78 | 20 72 6f 75 74 69 6e 65 | toolbox| routine|
|000062d0| 73 20 74 68 61 74 20 77 | 69 6c 6c 20 63 61 6c 6c |s that w|ill call|
|000062e0| 20 74 68 65 20 6d 65 6d | 6f 72 79 20 6d 61 6e 61 | the mem|ory mana|
|000062f0| 67 65 72 2e 0d 3e 3c 20 | 49 73 20 74 68 65 72 65 |ger..>< |Is there|
|00006300| 20 61 20 77 61 79 20 61 | 72 6f 75 6e 64 20 74 68 | a way a|round th|
|00006310| 69 73 3f 0d 0d 3e 41 20 | 6a 47 4e 45 46 69 6c 74 |is?..>A |jGNEFilt|
|00006320| 65 72 20 69 73 20 61 20 | 73 69 6d 70 6c 65 20 77 |er is a |simple w|
|00006330| 61 79 20 74 6f 20 67 65 | 74 20 70 65 72 69 6f 64 |ay to ge|t period|
|00006340| 69 63 20 74 69 6d 65 20 | 61 6e 64 20 79 6f 75 20 |ic time |and you |
|00006350| 63 61 6e 20 6d 6f 76 65 | 20 6d 65 6d 6f 72 79 0d |can move| memory.|
|00006360| 3e 69 66 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 2e |>if you |need to.|
|00006370| 20 20 54 68 65 20 6f 6e | 6c 79 20 70 72 6f 62 6c | The on|ly probl|
|00006380| 65 6d 20 69 73 20 74 68 | 61 74 20 79 6f 75 20 61 |em is th|at you a|
|00006390| 72 65 6e 27 74 20 67 75 | 61 72 61 6e 74 65 65 64 |ren't gu|aranteed|
|000063a0| 20 74 68 61 74 20 69 74 | 0d 3e 77 69 6c 6c 20 62 | that it|.>will b|
|000063b0| 65 20 63 61 6c 6c 65 64 | 20 66 72 65 71 75 65 6e |e called| frequen|
|000063c0| 74 6c 79 2e 0d 0d 45 76 | 65 6e 20 62 65 74 74 65 |tly...Ev|en bette|
|000063d0| 72 20 69 73 20 61 20 66 | 61 63 65 6c 65 73 73 20 |r is a f|aceless |
|000063e0| 62 61 63 6b 67 72 6f 75 | 6e 64 20 61 70 70 6c 69 |backgrou|nd appli|
|000063f0| 63 61 74 69 6f 6e 2e 20 | 20 59 6f 75 20 63 61 6e |cation. | You can|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.